|
|||||||||
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 | +--sub_arctic.lib.v_range_slider
This class creates a vertical slider with either the default artkit or other look. It handles all the input side processing and then uses v_slider_display (from which it is derived) to do the display.
Field Summary | |
protected callback_object |
_callback_obj
Object we make callbacks to |
protected static int |
BETWEEN_THUMBS_DRAGGED
|
static int |
DYNAMIC_CALLBACK
Constant for dynamic callback (made at each movement) |
protected static int |
END_THUMB_DRAGGED
|
protected static int |
START_THUMB_DRAGGED
|
static int |
STATIC_CALLBACK
Constant for static callback (made only at end of movement) |
Fields inherited from class sub_arctic.lib.v_range_slider_display |
_end_value,
_motion,
_start_value,
BETWEEN_THUMBS,
END_THUMB,
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(int xv,
int yv,
int hv,
int minv,
int maxv,
int start_val,
int end_val,
int sincv,
int lincv,
callback_object call_obj)
|
|
v_range_slider(int xv,
int yv,
int hv,
int minv,
int maxv,
int start_val,
int end_val,
int sincv,
int lincv,
callback_object call_obj,
loaded_image up_im,
loaded_image dn_im,
loaded_image th_im,
loaded_image back_pat)
|
Method Summary | |
callback_object |
callback_obj()
Object that this slider makes callbacks to when moved. |
void |
do_callback(event evt)
Do the default callback (in this case the static callback) |
void |
do_callback(event evt,
int callback_num,
java.lang.Object callback_info)
Do the default callback parameters. |
boolean |
drag_end(event evt,
java.lang.Object user_info)
End the simple drag of the thumb. |
boolean |
drag_feedback(event evt,
java.lang.Object user_info)
Movement within a drag of the thumb. |
boolean |
drag_start(event evt,
java.lang.Object user_info)
Start of a drag for the thumb. |
protected void |
dynamic_callback(event evt)
Do a "dynamic" callback. |
int |
first_callback_num()
First valid callback number |
protected void |
handle_down_button(event evt)
This function gets called to handle a press of the "down" button. |
protected void |
handle_up_button(event evt)
This function gets called to handle a press of the "up" button. |
int |
last_callback_num()
Last valid callback number |
boolean |
press(event evt,
java.lang.Object user_info)
Handle mouse presses in our bounds -- makes us the drag focus if they click on the thumb. |
boolean |
release(event evt,
java.lang.Object user_info)
Companion for press() -- ignore here, it never gets called because we become the drag focus. |
void |
set_callback_obj(callback_object cb)
Set the callback object that this button makes callbacks to when moved. |
protected void |
static_callback(event evt)
Do a "static" callback. |
Methods inherited from class sub_arctic.lib.v_range_slider_display |
conform,
draw_self_local,
end_thumb_offset,
end_value,
motion,
part_a,
part_b,
set_end_value,
set_motion,
set_part_a,
set_part_b,
set_raw_part_a,
set_raw_part_b,
set_start_value,
start_thumb_offset,
start_value,
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_DRAGGED
protected static final int BETWEEN_THUMBS_DRAGGED
protected static final int END_THUMB_DRAGGED
protected callback_object _callback_obj
public static final int STATIC_CALLBACK
public static final int DYNAMIC_CALLBACK
Constructor Detail |
public v_range_slider(int xv, int yv, int hv, int minv, int maxv, int start_val, int end_val, int sincv, int lincv, callback_object call_obj, loaded_image up_im, loaded_image dn_im, loaded_image th_im, loaded_image back_pat)
public v_range_slider(int xv, int yv, int hv, int minv, int maxv, int start_val, int end_val, int sincv, int lincv, callback_object call_obj)
Method Detail |
public callback_object callback_obj()
public void set_callback_obj(callback_object cb)
callback_object
- cb the new object to which we make callbacks.public int first_callback_num()
public int last_callback_num()
protected void dynamic_callback(event evt)
event
- evt the event which caused this callback.protected void static_callback(event evt)
event
- evt the event which caused this callback.public void do_callback(event evt)
public void do_callback(event evt, int callback_num, java.lang.Object callback_info)
protected void handle_up_button(event evt)
event
- evt the button press eventprotected void handle_down_button(event evt)
event
- evt the button press eventpublic boolean press(event evt, java.lang.Object user_info)
event
- evt the press event (mouse down).Object
- user_info the information that was handed to the
pick_collector when this object was deemed to
be picked (this value is given to the drag focus
agent also, so it will be propagated along to the
drag calls below).public boolean release(event evt, java.lang.Object user_info)
event
- evt the release event.Object
- user_info the information that was handed to the
pick_collector when this object was deemed to be
picked.public boolean drag_start(event evt, java.lang.Object user_info)
event
- evt the event that is starting the drag (usually a
press).Object
- user_info the object passed to the simple drag_agent.public boolean drag_feedback(event evt, java.lang.Object user_info)
event
- evt the drag event (mouse move).Object
- user_info the object passed to the simple drag_agent.public boolean drag_end(event evt, java.lang.Object user_info)
event
- evt the end of the drag event (mouse release usually).Object
- user_info the object passed to the simple drag_agent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |