Inheritance diagram for TextRegion:

Public Member Functions | |
| TextRegion (String name, String theText, Font theFont, Units origX, Units origY) | |
| TextRegion (String name, String theText, Font theFont, Units origX, Units origY, Units width, Units height) | |
| Color | getColor () |
| Font | getFont () |
| String[] | getLinesOfText () |
| RegionRenderer | getRenderer () |
| String | getText () |
| Units | getX () |
| Units | getY () |
| void | setColor (Color c) |
| void | setLineWrapped (boolean b) |
| boolean | isLineWrapped () |
| void | setMaxLines (int i) |
| int | getMaxLines () |
| String | toString () |
This software is distributed under the BSD License.
Definition at line 26 of file TextRegion.java.
| TextRegion | ( | String | name, | |
| String | theText, | |||
| Font | theFont, | |||
| Units | origX, | |||
| Units | origY | |||
| ) |
| theText | What text is displayed. | |
| theFont | The Font Family. Specify the size in points through the font object. We will consider the point size of the font as an exact 1/72nd of an inch translation, regardless of the device. | |
| origX | ||
| origY |
Definition at line 94 of file TextRegion.java.
References Units.getValue(), Units.getValueIn(), Region.referenceUnits, and Region.setShape().
| TextRegion | ( | String | name, | |
| String | theText, | |||
| Font | theFont, | |||
| Units | origX, | |||
| Units | origY, | |||
| Units | width, | |||
| Units | height | |||
| ) |
| name | ||
| theText | ||
| theFont | ||
| origX | ||
| origY | ||
| width | override the text's actual width with this value | |
| height | override the text's actual height with this value |
Definition at line 127 of file TextRegion.java.
References Units.getValue(), Units.getValueIn(), Region.referenceUnits, and Region.setShape().
| Color getColor | ( | ) |
| Font getFont | ( | ) |
Definition at line 160 of file TextRegion.java.
Referenced by TextRenderer.renderToG2D(), and TextRenderer.TextRenderer().
| String [] getLinesOfText | ( | ) |
| int getMaxLines | ( | ) |
Definition at line 232 of file TextRegion.java.
Referenced by TextRenderer.renderToG2D().
| RegionRenderer getRenderer | ( | ) |
| String getText | ( | ) |
Definition at line 181 of file TextRegion.java.
Referenced by TextRenderer.TextRenderer().
| Units getX | ( | ) |
| Units getY | ( | ) |
| boolean isLineWrapped | ( | ) |
Definition at line 218 of file TextRegion.java.
Referenced by TextRegion.setLineWrapped().
| void setColor | ( | Color | c | ) |
| void setLineWrapped | ( | boolean | b | ) |
| b | whether automatic line wrapping should occur. If ture, the text will be constrained to the region boundaries. |
Definition at line 210 of file TextRegion.java.
References TextRegion.isLineWrapped().
| void setMaxLines | ( | int | i | ) |
| i | the maximum number of lies to set. If <= 0, all lines will be set. |
Definition at line 225 of file TextRegion.java.
| String toString | ( | ) |
Reimplemented from Region.
Definition at line 239 of file TextRegion.java.
References Units.getUnitName(), Units.getValue(), and Region.referenceUnits.
1.4.7