|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.chart2d.Area
|
+--net.sourceforge.chart2d.FontArea
|
+--net.sourceforge.chart2d.TextArea
A customizable text label. This label has built-int bordering, spacing
between borders and text, text rotation, line breaking, auto justification
within the borders, growing and shrinking, and auto locating. Much of this
functionality is provided by its super classes.
Note: Does not support null values. Pass empty strings instead.
| Fields inherited from class net.sourceforge.chart2d.Area |
BETWEEN, BOTTOM, CENTER, CENTERED, CONTINUOUS, DASHED, DOTTED, FLOAT, HEIGHT, HORIZONTAL, INTEGER, LABELSBOTTOM, LABELSLEFT, LEFT, LEFTBOTTOM, LEFTRIGHT, LEFTTOP, LESSER, MAX, MAXMODEL, MIN, RIGHT, RIGHTBOTTOM, RIGHTTOP, TOP, TOPBOTTOM, VERTICAL, WIDTH |
| Constructor Summary | |
(package private) |
TextArea()
Creates a new text area with the following default values: setText (""); setRotateLeft (false); setTextJustification (CENTER); resetTextAreaModel (true); |
| Method Summary | |
(package private) boolean |
getRotateLeft()
Returns whether this text is rotated left 90 degrees. |
(package private) java.lang.String |
getText()
Returns the text of this label. |
(package private) boolean |
getTextAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints all of the components of this class. |
(package private) void |
resetTextAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
setRotateLeft(boolean r)
Adjusts the rotation of the text within the label. |
(package private) void |
setText(java.lang.String t)
Changes the text of this label. |
(package private) void |
setTextJustification(int which)
Specifies whether text will be (in the case text is not rotated) left, right, or center justified respective to the space within the bordered area. |
(package private) void |
updateTextArea(java.awt.Graphics2D g2D)
Updates all the variables of all this parent's classes, then all the variables of this class. |
| Methods inherited from class net.sourceforge.chart2d.FontArea |
getFont, getFontAreaNeedsUpdate, getFontColor, getFontName, getFontPointModel, getFontStyle, resetFontAreaModel, setFontColor, setFontName, setFontPointModel, setFontStyle, updateFontArea |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
TextArea()
| Method Detail |
void setText(java.lang.String t)
t - The new text.void setRotateLeft(boolean r)
r - If true, then adjusts settings so that text is rotated.void setTextJustification(int which)
which - Which justification for the text. Possible values, if not
rotated: LEFT, RIGHT, CENTER; if rotated: BOTTOM, TOP, CENTER. Also,
if you prefer and when rotated, LEFT and RIGHT may be used to mean BOTTOM
and TOP respectively; this program translates them into BOTTOM and TOP for
you.java.lang.String getText()
boolean getRotateLeft()
boolean getTextAreaNeedsUpdate()
void updateTextArea(java.awt.Graphics2D g2D)
g2D - The graphics context under which to make calculations.void resetTextAreaModel(boolean reset)
reset - True causes the max model size to be set upon the next max
sizing.void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class FontAreag2D - The graphics context for calculations and painting.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||