TextRenderer Class Reference

Inheritance diagram for TextRenderer:

RegionRenderer List of all members.

Public Member Functions

 TextRenderer (TextRegion tr)
Points getAscentInPoints ()
Points getLineHeightInPoints ()
void renderToG2D (Graphics2D g2d)

Detailed Description

Renders a Text Region.

This software is distributed under the BSD License.

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

Definition at line 29 of file TextRenderer.java.

Constructor & Destructor Documentation

TextRenderer ( TextRegion  tr  ) 


Definition at line 48 of file TextRenderer.java.

References TextRegion.getColor(), TextRegion.getFont(), TextRegion.getText(), and RegionRenderer.region.

Member Function Documentation

Points getAscentInPoints (  ) 


Definition at line 60 of file TextRenderer.java.

Referenced by TextRenderer.renderToG2D().

Points getLineHeightInPoints (  ) 


Definition at line 67 of file TextRenderer.java.

Referenced by TextRenderer.renderToG2D().

void renderToG2D ( Graphics2D  g2d  ) 


Reimplemented from RegionRenderer.

Definition at line 74 of file TextRenderer.java.

References TextRenderer.getAscentInPoints(), TextRegion.getFont(), Region.getHeight(), TextRenderer.getLineHeightInPoints(), TextRegion.getLinesOfText(), TextRegion.getMaxLines(), Units.getValue(), Units.getValueInPoints(), Region.getWidth(), TextRegion.getX(), TextRegion.getY(), TextRegion.isLineWrapped, and RegionRenderer.region.

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