|
|||||||||
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.base_parent_interactor | +--sub_arctic.lib.hierarchy_parent
Field Summary | |
protected int |
_indent_spacing
This holds the amount that children in the hierarchy are indented. |
protected boolean |
_is_open
Keep track if we are open. |
protected interactor |
_special_child
We need to know if we are handling the first child management. |
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 | |
hierarchy_parent()
This builds a default hierarchy manager with default position of 0,0, no border, interchild spacing of 2, and indent spacing of 15. |
|
hierarchy_parent(int xv,
int yv)
This builds a default hierarchy manager with no border, interchild spacing of 2, and indent spacing of 15. |
|
hierarchy_parent(int xv,
int yv,
int the_border,
int the_interchild_spacing,
int the_indent_spacing)
Build a hierarchy object, which is a special type of parent. |
Method Summary | |
void |
add_child(interactor chld)
Override to also add constraints. |
boolean |
click(event evt,
java.lang.Object ui)
Handle click input. |
void |
close()
This causes the hierarchy to "close up". |
protected void |
draw_children(drawable d)
Override the way child drawing is done. |
int |
indent_spacing()
The amount that children in the hierarchy are indented. |
void |
insert_child(int at_indx,
interactor chld)
Override to also add constraints. |
boolean |
is_open()
|
void |
open()
This causes the hierarchy to "open up". |
void |
pick(int pt_x,
int pt_y,
pick_collector pick_list)
This is the input stealer for the first object. |
interactor |
remove_child(int at_indx)
Override to also add constraints |
void |
remove_child(interactor the_child)
Override to also add constraints. |
protected void |
set_child_constraints()
This builds the constraints for the children. |
void |
set_indent_spacing(int s)
Set the amount that children in the hierarchy are indented. |
void |
set_is_open(boolean i)
|
void |
set_special_child(interactor b)
If you call this method the interactor you pass becomes the first child. |
interactor |
special_child()
This returns null if we aren't handling anything special for them. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected boolean _is_open
protected interactor _special_child
protected int _indent_spacing
Constructor Detail |
public hierarchy_parent(int xv, int yv, int the_border, int the_interchild_spacing, int the_indent_spacing)
int
- xv the x position of the interactor.int
- yv the y position of the interactor.int
- the_border the size of the border around our
children.int
- the_interchild_spacing vertical space between children.int
- the_indent_spacing amount to indent children.public hierarchy_parent(int xv, int yv)
int
- xv the x position of the interactor.int
- yv the y position of the interactor.public hierarchy_parent()
Method Detail |
public boolean is_open()
public void set_is_open(boolean i)
public interactor special_child()
public void set_special_child(interactor b)
protected void set_child_constraints()
protected void draw_children(drawable d)
drawable
- d the drawing surface we produce our result on.public int indent_spacing()
public void set_indent_spacing(int s)
int
- s new indentation amount.public void open()
public void close()
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.public boolean click(event evt, java.lang.Object ui)
event
- evt the release event.Object
- ui user_info passed to the pick (ignored).public void add_child(interactor chld)
interactor
- chld the child object being added.public void insert_child(int at_indx, interactor chld)
int
- at_indx index where the child goes.interactor
- chld the child object to insert at that indexpublic interactor remove_child(int at_indx)
int
- at_indx index of child to be removed.public void remove_child(interactor the_child)
interactor
- the_child the child to remove.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |