|
|||||||||
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.parent_with_parts
This is a small interactor subclass that just adds part_a and part_b functionality to base_parent_interactor. It implements part_a and part_b as simple integer attributes (i.e., not tied to anything else) and is useful either as a base class for something that needs parts, or as a intermediary to pass on a value or compute an additional quantity. The source of this class is also a good guide to how to add part_a or part_b functionality to an existing class.
Field Summary | |
protected int |
_part_a
Storage for part_a value |
protected int |
_part_b
Storage for part_b 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 | |
parent_with_parts()
Constructor that assumes a position of 0,0, and a (temporary) default size. |
|
parent_with_parts(int x_v,
int y_v)
Constructor that assumes a (temporary) default size. |
|
parent_with_parts(int x_v,
int y_v,
int w_v,
int h_v)
Full constructor. |
Method Summary | |
int |
intrinsic_constraints()
Indicate which values (coordinates/sizes) of this object are intrinsically constrained by the internals of the object. |
int |
part_a()
Return the value of part_a after evaluating any attached constraints. |
int |
part_b()
Return the value of part_b after evaluating any attached constraints. |
void |
set_part_a(int v)
Set part_a of object. |
void |
set_part_b(int v)
Set part_b of object. |
protected void |
set_raw_part_a(int v)
Set part_a value directly bypassing the constraint system. |
protected void |
set_raw_part_b(int v)
Set part_b value directly bypassing the constraint system. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int _part_a
protected int _part_b
Constructor Detail |
public parent_with_parts(int x_v, int y_v, int w_v, int h_v)
int
- xv x position of the interactor.int
- yv y position of the interactor.int
- wv width of the interactor.int
- hv height of the interactor.public parent_with_parts(int x_v, int y_v)
int
- xv x position of the interactor.int
- yv y position of the interactor.public parent_with_parts()
Method Detail |
public int intrinsic_constraints()
public int part_a()
protected void set_raw_part_a(int v)
int
- v new value for part_a.public void set_part_a(int v)
int
- v value for part_a.public int part_b()
protected void set_raw_part_b(int v)
int
- v the new value for part_b.public void set_part_b(int v)
int
- v new value for part_b.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |