edu.stanford.hci.r3.render
Class RegionRenderer
java.lang.Object
edu.stanford.hci.r3.render.RegionRenderer
- Direct Known Subclasses:
- CompoundRenderer, ImageRenderer, PolygonRenderer, TextRenderer
public class RegionRenderer
- extends java.lang.Object
Renders a Region to a graphics context.
This software is distributed under the BSD License.
Method Summary |
void |
renderToG2D(java.awt.Graphics2D g2d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_FILE_KEY
public static final java.lang.String CONFIG_FILE_KEY
- See Also:
- Constant Field Values
CONFIG_FILE_VALUE
public static final java.lang.String CONFIG_FILE_VALUE
- See Also:
- Constant Field Values
DEBUG_REGIONS
public static final boolean DEBUG_REGIONS
- Whether we are in debug mode.
region
protected Region region
RegionRenderer
public RegionRenderer(Region r)
renderToG2D
public void renderToG2D(java.awt.Graphics2D g2d)
- Parameters:
g2d
- Draw some boxes to the Graphics context to show where the regions lie. Normally, a
subclass would want to override this and NOT call the super.renderToG2D(...)