PolygonRenderer Class Reference

Inheritance diagram for PolygonRenderer:

RegionRenderer List of all members.

Public Member Functions

 PolygonRenderer (PolygonalRegion r)
void renderToG2D (Graphics2D g2d)
void setStroke (Stroke s)

Detailed Description

Renders a Polygon Region. You can customize the renderer by changing the type of stroke it uses, etc.

This software is distributed under the BSD License.

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

Definition at line 27 of file PolygonRenderer.java.

Constructor & Destructor Documentation

PolygonRenderer ( PolygonalRegion  r  ) 


Definition at line 38 of file PolygonRenderer.java.

References PolygonalRegion.getStrokeColor(), and PolygonalRegion.getStrokeThickness().

Member Function Documentation

void renderToG2D ( Graphics2D  g2d  ) 

See also:

Reimplemented from RegionRenderer.

Definition at line 48 of file PolygonRenderer.java.

References Units.getConversionTo(), PolygonalRegion.getOffsetX(), PolygonalRegion.getOffsetY(), Region.getScaleX(), Region.getScaleY(), Region.getShape(), Region.getUnits(), and Units.getValue().

void setStroke ( Stroke  s  ) 


Definition at line 99 of file PolygonRenderer.java.

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