static tom.Array arrows_hor;
static tom.Array arrows_ver;
static Image knob;
static float normal_arrow_width;
static float page_arrow_width;
static int scroller_configuration;
too.Timer scroll_timer;
float highlighted_pos;
float offset;
const EXCESS_PAGE_ROOM = 10.0;
const SCROLL_REPEAT = 0.05;
const SCROLL_PAGE_REPEAT = 0.1;
private void load_images;
arrows_width and arrows_height.
(float, float, float, float, float, float, float, float) (pos_less, pos_more, pos_less_page, pos_more_page, bg_pos, bg_length, knob_pos, knob_length)
sizesForLength float length
value float value
percentage float percentage
horizontal boolean horizontal_p
withPages boolean page_p
pre
value >= 0.0 && value <= 1.0 && percentage >= 0.0 && percentage <= 1.0;
knob_length ==
-1, the knob is not to be drawn; if in addition knob_pos == -1 the
size of the scroller is too small to draw the knob.
public float percentage;
SCROLLER_WIDTH when drawing.
float value;
public int highlighted_arrow;
SCROLLER_PART_KNOB is no
arrow; SCROLLER_PART_LESS is lower, SCROLLER_PART_MORE is
higher, SCROLLER_PART_PAGE_LESS is page-lower, and
SCROLLER_PART_PAGE_MORE is page-higher. In addition, a value of
SCROLLER_PART_NONE means nothing useful was being touched.
public mutable boolean continuous;
mouseUp.
byte configuration;
id initFrame (float, float, float, float) (x, y, w, h);
load_images if needed.
Default, a vertical scroller will (attempt to) show page scrolling; a
horizontal scroller will not.
double doubleValue;
value.
void setDoubleValue double v pre v >= 0.0 && v <= 1.0;
value and invoke display.
private void
drawArrow int arrow
from tom.Indexed array
at float pos
clipped (float, float, float, float) (x, y, w, h);
void drawSelf (float, float, float, float) (x, y, w, h);
int hitPart;
highlighted_arrow.
void mouseDown MouseEvent event;
void mouseDragged MouseEvent event;
void mouseUp MouseEvent event;
void
setValue float v
andPercentage float p
pre
v >= 0.0 && v <= 1.0 && p >= 0.0 && p <= 1.0;
selector action;
Action.
_builtin_.Any target;
void setTarget tom.All t;
void setAction selector a;
void encodeUsingCoder tom.Encoder coder;
void initWithCoder tom.Decoder coder;