|
|||||||||
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
An interface_pred predicate class that performs a semantic redraw action for a semantic lens. In this case the object draws a small name tag containing the class name, and a bounding box. 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 java.awt.Font |
_font
Font to draw class tags in. |
protected java.awt.Color |
_tag_color
Tag color |
static int |
id
Unique id for this drawing traversal |
protected java.awt.FontMetrics |
metrics
FontMetrics object for the current font |
Constructor Summary | |
nametag_sem_draw()
Constructor using default font and tag color. |
|
nametag_sem_draw(java.awt.Font fnt,
java.awt.Color c)
Full constructor. |
Method Summary | |
java.awt.Font |
font()
Font to draw class tags in. |
void |
set_font(java.awt.Font fnt)
Set font to draw class tags in. |
void |
set_tag_color(java.awt.Color c)
Set tag color. |
java.awt.Color |
tag_color()
Tag color. |
boolean |
test(interactor obj,
java.lang.Object parameters)
Perform the predicate test. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int id
protected java.awt.Font _font
protected java.awt.FontMetrics metrics
protected java.awt.Color _tag_color
Constructor Detail |
public nametag_sem_draw(java.awt.Font fnt, java.awt.Color c)
Font
- fnt the font to draw tags in.Color
- c the color to draw tags in.public nametag_sem_draw()
Method Detail |
public java.awt.Font font()
public void set_font(java.awt.Font fnt)
Font
- fnt the font to draw in.public java.awt.Color tag_color()
public void set_tag_color(java.awt.Color c)
Color
- c the color we draw tags in.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 |