|
|||||||||
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.uni_container | +--sub_arctic.lib.simple_grow_container
A container class for one object that provides a grow handle. This establishes constraints on its child so that it follows the size of this object as it grows.
Field Summary | |
protected loaded_image |
_handle
Image for the grow handle |
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 | |
simple_grow_container(int x,
int y,
int w,
int h,
loaded_image hnd_img)
Full constructor. |
Method Summary | |
boolean |
drag_end(event evt,
int cur_w,
int cur_h,
int st_w,
int st_h,
java.lang.Object user_info)
Handle input corresponding to the end of a drag. |
boolean |
drag_feedback(event evt,
int cur_w,
int cur_h,
int st_w,
int st_h,
java.lang.Object user_info)
Handle a movement during a drag. |
boolean |
drag_start(event evt,
java.lang.Object user_info)
Handle the start of a drag to the object. |
protected void |
draw_self_local(drawable d)
Draw the object's current appearance. |
loaded_image |
handle()
Image for the grow handle. |
void |
pick(int pt_x,
int pt_y,
pick_collector pick_list)
Determine if this object is "picked" by the the given point. |
boolean |
press(event evt,
java.lang.Object user_info)
Handle mouse button press input to the object. |
boolean |
release(event evt,
java.lang.Object user_info)
Companion to press(). |
interactor |
remove_child(int at_indx)
Override remove_child to drop constraints. |
void |
set_child(int at_indx,
interactor chld)
Override set_child to establish and/or remove constraints. |
void |
set_handle(loaded_image himg)
Set the image used for the grow handle. |
Methods inherited from class sub_arctic.lib.uni_container |
add_child |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected loaded_image _handle
Constructor Detail |
public simple_grow_container(int x, int y, int w, int h, loaded_image hnd_img)
int
- x the initial x position of this object.int
- y the initial y position of this object.int
- w the initial width of this object.int
- w the initial height of this object.loaded_image
- hnd_img an image for the grow handle.Method Detail |
public loaded_image handle()
public void set_handle(loaded_image himg)
loaded_image
- himg the new image for the grow handle.public void set_child(int at_indx, interactor chld)
int
- at_indx the index to place the child at.interactor
- chld the child interactor.public interactor remove_child(int at_indx)
int
- at_index index of child to remove.public boolean press(event evt, java.lang.Object user_info)
event
- evt the press event.Object
- user_info information associated with this object at pick
time.public boolean release(event evt, java.lang.Object user_info)
event
- evt the release event.Object
- user_info information associated with this object at pick
time.public boolean drag_start(event evt, java.lang.Object user_info)
event
- evt the event "causing" the drag.Object
- user_info information associated with this object at pick
time.public boolean drag_feedback(event evt, int cur_w, int cur_h, int st_w, int st_h, java.lang.Object user_info)
event
- evt the event "causing" the drag.int
- cur_w new width indicated by drag.int
- cur_h new width indicated by drag.int
- st_w initial width of this object.int
- st_h initial height of this object.Object
- user_info information associated with this object at pick
time.public boolean drag_end(event evt, int cur_w, int cur_h, int st_w, int st_h, java.lang.Object user_info)
event
- evt the event "causing" the drag.int
- cur_w new width indicated by drag.int
- cur_h new width indicated by drag.int
- st_w initial width of this object.int
- st_h initial height of this object.Object
- user_info information associated with this object at pick
time.public void pick(int pt_x, int pt_y, pick_collector pick_list)
int
- pt_x the x coordinate of the query point.int
- pt_y the y coordinate of the query point.pick_collector
- pick_list the result list we add ourselves to if we
are picked.protected void draw_self_local(drawable d)
drawable
- d the surface to draw on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |