|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.min_interactor | +--sub_arctic.lib.base_interactor | +--sub_arctic.lib.v_slider_display | +--sub_arctic.lib.v_range_slider_display
This the class that knows how to the display-side work of displaying a vertical scrollbar. It handles outputting a scrollbar from a set of state variables.
Field Summary | |
protected int |
_end_value
Current value of the slider |
protected int |
_motion
Current motion of the slider |
protected int |
_start_value
Current value of the slider |
protected static int |
BETWEEN_THUMBS
|
protected static int |
END_THUMB
|
protected static int |
START_THUMB
|
Fields inherited from class sub_arctic.lib.v_slider_display |
_back_img,
_boxed,
_dn_img,
_large_inc,
_max_val,
_min_val,
_small_inc,
_thumb_img,
_thumb_shift,
_up_img,
_value |
Fields inherited from class sub_arctic.lib.base_interactor |
_child_index,
_child_list,
_clip_bounds,
_constraint_flags,
_enabled_constraint,
_flags,
_h,
_h_constraint,
_parent,
_part_a_constraint,
_part_b_constraint,
_user_data,
_visible_constraint,
_w,
_w_constraint,
_x,
_x_constraint,
_y,
_y_constraint,
default_child_hint |
Constructor Summary | |
v_range_slider_display(int xv,
int yv,
int hv,
int minv,
int maxv,
int start_val,
int end_val,
int sincv,
int lincv)
Construct a new v_slider_display with the artkit look. |
|
v_range_slider_display(int xv,
int yv,
int hv,
int minv,
int maxv,
int start_val,
int end_val,
int sincv,
int lincv,
loaded_image up_im,
loaded_image dn_im,
loaded_image th_im,
loaded_image back_pat)
Full constructor for the v_slider_display. |
Method Summary | |
protected void |
conform()
Make sure min <= max and min <= value <= max |
protected void |
draw_self_local(drawable d)
Draw the current image on the drawable provided. |
protected int |
end_thumb_offset()
Compute the offset to the thumb in pixels (returns -1 for no thumb) |
int |
end_value()
Current value of the slider |
int |
motion()
Current motion of the slider |
int |
part_a()
Return the value of the part_a component of this object. |
int |
part_b()
Return the value of the part_b component of this object. |
void |
set_end_value(int val)
Set the current value of the slider |
void |
set_motion(int motion)
Set the current value of the slider |
void |
set_part_a(int v)
Set the part_a component of this object. |
void |
set_part_b(int v)
Set the part_a component of this object. |
protected void |
set_raw_part_a(int v)
Set part_a value directly bypassing the constraint system (but doing damage). |
protected void |
set_raw_part_b(int v)
Set part_a value directly bypassing the constraint system (but doing damage). |
void |
set_start_value(int val)
Set the current value of the slider |
protected int |
start_thumb_offset()
Compute the offset to the thumb in pixels (returns -1 for no thumb) |
int |
start_value()
Current value of the slider |
protected boolean |
thumbs_fit()
|
Methods inherited from class sub_arctic.lib.v_slider_display |
back_img,
boxed,
dn_img,
intrinsic_constraints,
large_inc,
max_val,
min_val,
set_back_img,
set_boxed,
set_dn_img,
set_large_inc,
set_max_val,
set_min_val,
set_small_inc,
set_thumb_img,
set_thumb_shift,
set_up_img,
set_value,
small_inc,
thumb_img,
thumb_offset,
thumb_shift,
up_img,
value |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final int START_THUMB
protected static final int BETWEEN_THUMBS
protected static final int END_THUMB
protected int _start_value
protected int _end_value
protected int _motion
Constructor Detail |
public v_range_slider_display(int xv, int yv, int hv, int minv, int maxv, int start_val, int end_val, int sincv, int lincv, loaded_image up_im, loaded_image dn_im, loaded_image th_im, loaded_image back_pat)
int
- xv x position of the slider.int
- yv y position of the slider.int
- hv height of the slider (in pixels).int
- minv minimum value of the slider.int
- maxv maximum value of the slider.int
- start_val start value of the slider.int
- end_val end value of the slider.int
- sincv small increment value.int
- lincv large increment value.loaded_image
- up_im image for the up button.loaded_image
- dn_im image for the down button.loaded_image
- th_im image for the thumb.loaded_image
- back_pat image for the background of the slider.public v_range_slider_display(int xv, int yv, int hv, int minv, int maxv, int start_val, int end_val, int sincv, int lincv)
int
- xv x position of the slider.int
- yv y position of the slider.int
- hv height of the slider (in pixels).int
- minv minimum value of the slider.int
- maxv maximum value of the slider.int
- start_val start value of the slider.int
- end_val end value of the slider.int
- sincv small increment value.int
- lincv large increment value.Method Detail |
public int part_a()
protected void set_raw_part_a(int v)
int
- v the new value of part_a.public void set_part_a(int v)
public int part_b()
protected void set_raw_part_b(int v)
int
- v the new value of part_b.public void set_part_b(int v)
public int start_value()
public void set_start_value(int val)
int
- val the new value of the sliderpublic int end_value()
public void set_end_value(int val)
int
- val the new value of the sliderpublic int motion()
public void set_motion(int motion)
int
- val the new value of the sliderprotected void conform()
protected int start_thumb_offset()
protected int end_thumb_offset()
protected boolean thumbs_fit()
protected void draw_self_local(drawable d)
drawable
- d a drawable for the image or screen you want this object
drawn on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |