|
|||||||||
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.test.coord_tracker
Demo class which displays its own location within a string
Field Summary | |
protected java.lang.String |
_coord_str
Text of the coordinate |
protected java.awt.Font |
_drawing_font
Font to display in |
protected java.awt.FontMetrics |
_metric
Cached metrics of the font |
protected java.lang.String |
_tag1
Text to show before the coordinate display |
protected java.lang.String |
_tag2
Text to show after the coordinate display |
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 | |
coord_tracker()
Constructor with all defaults |
|
coord_tracker(int xv,
int yv,
java.lang.String tag_1,
java.lang.String tag_2)
Constructor with default font |
|
coord_tracker(int xv,
int yv,
java.lang.String tag_1,
java.lang.String tag_2,
java.awt.Font in_fnt)
Full constructor |
Method Summary | |
void |
configure()
Recompute object's display string based on its new position & resize |
protected void |
draw_self_local(drawable d)
Provide drawing behavior for the object |
int |
intrinsic_constraints()
Tell the system that the object determines its own width & height |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String _tag1
protected java.lang.String _tag2
protected java.lang.String _coord_str
protected java.awt.Font _drawing_font
protected java.awt.FontMetrics _metric
Constructor Detail |
public coord_tracker(int xv, int yv, java.lang.String tag_1, java.lang.String tag_2, java.awt.Font in_fnt)
public coord_tracker(int xv, int yv, java.lang.String tag_1, java.lang.String tag_2)
public coord_tracker()
Method Detail |
public int intrinsic_constraints()
public void configure()
protected void draw_self_local(drawable d)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |