edu.stanford.hci.r3.render
Class RegionRenderer

java.lang.Object
  extended by 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.


Field Summary
static java.lang.String CONFIG_FILE_KEY
           
static java.lang.String CONFIG_FILE_VALUE
           
static boolean DEBUG_REGIONS
          Whether we are in debug mode.
protected  Region region
           
 
Constructor Summary
RegionRenderer(Region r)
           
 
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
 

Field Detail

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
Constructor Detail

RegionRenderer

public RegionRenderer(Region r)
Method Detail

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(...)

Copyright 2006 Stanford University