|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.nametag_sem_draw | +--sub_arctic.lib.bounds_sem_draw
An interface_pred predicate object that performs a semantic redraw action for a semantic lens. This class can draw six pieces of information about the interactor it receives. It can draw a bounding box, a small name tag containing the interactor's class namme, as well as its x, y, width and height values. This predicate expects a sem_draw_context object as its parameters argument. This predicate is executed for its side effect only and always returns false.
base_interactor.traverse_and_collect(int, int, sub_arctic.lib.interactor_pred, sub_arctic.lib.interactor_pred, sub_arctic.lib.traversal_xform, java.lang.Object, sub_arctic.input.pick_collector)
Field Summary | |
protected boolean |
_show_bounds
Show a box around the object's bounds? |
protected boolean |
_show_class
Show the object's class name? |
protected boolean |
_show_h
Show the object's height? |
protected boolean |
_show_w
Show the object's width? |
protected boolean |
_show_x
Show the object's x coordinate? |
protected boolean |
_show_y
Show the object's y coordinate? |
Fields inherited from class sub_arctic.lib.nametag_sem_draw |
_font,
_tag_color,
id,
metrics |
Constructor Summary | |
bounds_sem_draw()
|
Method Summary | |
void |
set_show_bounds(boolean b)
Set whether to show a box around the object's . |
void |
set_show_class(boolean b)
Set whether to show the object's class name. |
void |
set_show_h(boolean b)
Set whether to show the object's height. |
void |
set_show_w(boolean b)
Set whether to show the object's width. |
void |
set_show_x(boolean b)
Set whether to show the object's x coordinate. |
void |
set_show_y(boolean b)
Set whether to show the object's y coordinate. |
boolean |
show_bounds()
Indication of whether we show a box around the object's bounds. |
boolean |
show_class()
Indication of whether we show the object's class name. |
boolean |
show_h()
Indication of whether we show the object's height. |
boolean |
show_w()
Indication of whether we show the object's width. |
boolean |
show_x()
Indication of whether we show the object's x coordinate. |
boolean |
show_y()
Indication of whether we show the object's y coordinate. |
boolean |
test(interactor obj,
java.lang.Object parameters)
Perform the predicate test. |
Methods inherited from class sub_arctic.lib.nametag_sem_draw |
font,
set_font,
set_tag_color,
tag_color |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean _show_class
protected boolean _show_bounds
protected boolean _show_x
protected boolean _show_y
protected boolean _show_h
protected boolean _show_w
Constructor Detail |
public bounds_sem_draw()
Method Detail |
public boolean show_class()
public void set_show_class(boolean b)
boolean
- b the desired boolean value.public boolean show_bounds()
public void set_show_bounds(boolean b)
boolean
- b the desired boolean value.public boolean show_x()
public void set_show_x(boolean b)
boolean
- b the desired boolean value.public boolean show_y()
public void set_show_y(boolean b)
boolean
- b the desired boolean value.public boolean show_h()
public void set_show_h(boolean b)
boolean
- b the desired boolean value.public boolean show_w()
public void set_show_w(boolean b)
boolean
- b the desired boolean value.public boolean test(interactor obj, java.lang.Object parameters)
obj
- the interactor the predicate is drawing.parameters
- a sem_draw_context object containing the a drawable
object and other bookkeeping needed for drawing.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |