|
|||||||||
| 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
Maintains a font to be used within an area. Contains all variables for the font, such as point, name, style, and color. Builds a font from these variable. When building font, uses the lesser ratio of the area class. This ensures proper growing and shrinking of the font respective to the changing in the area's size. Grows and shrinks if and only if max model area auto size is disabled.
| 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) |
FontArea()
Builds a new FontArea with the default values. |
| Method Summary | |
(package private) java.awt.Font |
getFont()
Returns a font built from the present variable values. |
(package private) boolean |
getFontAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) java.awt.Color |
getFontColor()
Returns this font's color. |
(package private) java.lang.String |
getFontName()
Returns the name of this font. |
(package private) int |
getFontPointModel()
Returns the model font's point; not the actual font point. |
(package private) int |
getFontStyle()
Returns the style of this font. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints this class. |
(package private) void |
resetFontAreaModel(boolean reset)
Resets the model for this class. |
(package private) void |
setFontColor(java.awt.Color c)
Changes the color of this font. |
(package private) void |
setFontName(java.lang.String n)
Changes the name of this font. |
(package private) void |
setFontPointModel(int p)
Changes the model font's point size. |
(package private) void |
setFontStyle(int s)
Changes the style of this font. |
(package private) void |
updateFontArea()
Updates all this classes variables. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
FontArea()
| Method Detail |
void setFontPointModel(int p)
p - The new model font point.void setFontName(java.lang.String n)
Font (String name, int style, int point).n - Then new name of the font.void setFontStyle(int s)
Font (String name, int style, int point).s - Then new style of the font.void setFontColor(java.awt.Color c)
c - Then new color of the font.int getFontPointModel()
java.lang.String getFontName()
int getFontStyle()
java.awt.Color getFontColor()
java.awt.Font getFont()
boolean getFontAreaNeedsUpdate()
void resetFontAreaModel(boolean reset)
reset - True causes the max model size to be set upon the next max
sizing.void updateFontArea()
void paintComponent(java.awt.Graphics2D g2D)
paintComponent in class Areag2D - The graphics context for calculations and painting.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||