RegionRenderer Class Reference

Inheritance diagram for RegionRenderer:

CompoundRenderer ImageRenderer PolygonRenderer TextRenderer List of all members.

Public Member Functions

 RegionRenderer (Region r)
void renderToG2D (Graphics2D g2d)

Static Public Attributes

static final String CONFIG_FILE_KEY = "regionrenderer.debugregions.file"
static final String CONFIG_FILE_VALUE = "/config/RegionRenderer.xml"
static final boolean DEBUG_REGIONS = readDebugFlagFromConfigFile()
 Whether we are in debug mode.

Protected Attributes

Region region

Detailed Description

Renders a Region to a graphics context.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 30 of file RegionRenderer.java.


Member Function Documentation

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

Reimplemented in CompoundRenderer, ImageRenderer, PolygonRenderer, and TextRenderer.

Definition at line 94 of file RegionRenderer.java.

References RegionRenderer.DEBUG_REGIONS, Units.getConversionTo(), Region.getFillColor(), Region.getOpacity(), Region.getScaleX(), Region.getScaleY(), Region.getStrokeColor(), Region.getUnits(), Region.getUnscaledBounds2D(), RegionRenderer.region, and Region.toString().

Referenced by CompoundRenderer.renderToG2D().


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:44 2007 for R3 Paper Toolkit by  doxygen 1.4.7