sub_arctic.lib
Class bounds_sem_draw

java.lang.Object
  |
  +--sub_arctic.lib.nametag_sem_draw
        |
        +--sub_arctic.lib.bounds_sem_draw
Direct Known Subclasses:
focus_sem_draw, isolation_sem_draw

public class bounds_sem_draw
extends nametag_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.

See Also:
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

_show_class

protected boolean _show_class
Show the object's class name?

_show_bounds

protected boolean _show_bounds
Show a box around the object's bounds?

_show_x

protected boolean _show_x
Show the object's x coordinate?

_show_y

protected boolean _show_y
Show the object's y coordinate?

_show_h

protected boolean _show_h
Show the object's height?

_show_w

protected boolean _show_w
Show the object's width?
Constructor Detail

bounds_sem_draw

public bounds_sem_draw()
Method Detail

show_class

public boolean show_class()
Indication of whether we show the object's class name.
Returns:
boolean indicating whether we show the object's class name.

set_show_class

public void set_show_class(boolean b)
Set whether to show the object's class name.
Parameters:
boolean - b the desired boolean value.

show_bounds

public boolean show_bounds()
Indication of whether we show a box around the object's bounds.
Returns:
boolean indicating whether we show a box around the object's bounds.

set_show_bounds

public void set_show_bounds(boolean b)
Set whether to show a box around the object's .
Parameters:
boolean - b the desired boolean value.

show_x

public boolean show_x()
Indication of whether we show the object's x coordinate.
Returns:
boolean indicating whether we show the object's x coordinate.

set_show_x

public void set_show_x(boolean b)
Set whether to show the object's x coordinate.
Parameters:
boolean - b the desired boolean value.

show_y

public boolean show_y()
Indication of whether we show the object's y coordinate.
Returns:
boolean indicating whether we show the object's y coordinate.

set_show_y

public void set_show_y(boolean b)
Set whether to show the object's y coordinate.
Parameters:
boolean - b the desired boolean value.

show_h

public boolean show_h()
Indication of whether we show the object's height.
Returns:
boolean indicating whether we show the object's height.

set_show_h

public void set_show_h(boolean b)
Set whether to show the object's height.
Parameters:
boolean - b the desired boolean value.

show_w

public boolean show_w()
Indication of whether we show the object's width.
Returns:
boolean indicating whether we show the object's width.

set_show_w

public void set_show_w(boolean b)
Set whether to show the object's width.
Parameters:
boolean - b the desired boolean value.

test

public boolean test(interactor obj,
                    java.lang.Object parameters)
Perform the predicate test. In this case we are doing this for the side effect (drawing attributes for the object) and always return false.
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.
Returns:
boolean false in all cases.
Overrides:
test in class nametag_sem_draw