| java.lang.Object net.sourceforge.chart2d.Area net.sourceforge.chart2d.FontArea
All known Subclasses: net.sourceforge.chart2d.PieInfoArea, net.sourceforge.chart2d.TitledArea, net.sourceforge.chart2d.TextArea, net.sourceforge.chart2d.TextListArea,
FontArea | class FontArea extends Area (Code) | | 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.
|
Constructor Summary | |
| FontArea() Builds a new FontArea with the default values. |
FontArea | FontArea()(Code) | | Builds a new FontArea with the default values.
|
getFont | final Font getFont()(Code) | | Returns a font built from the present variable values. Updates
the font point based on the model font point, builds an font, and return
it.
The current font. |
getFontAreaNeedsUpdate | final boolean getFontAreaNeedsUpdate()(Code) | | Indicates whether some property of this class has changed.
True if some property has changed. |
getFontColor | final Color getFontColor()(Code) | | Returns this font's color.
This font's color. |
getFontName | final String getFontName()(Code) | | Returns the name of this font.
Then name of the font. |
getFontPointModel | final int getFontPointModel()(Code) | | Returns the model font's point; not the actual font point.
The model font's point. |
getFontStyle | final int getFontStyle()(Code) | | Returns the style of this font.
Then style of the font. |
paintComponent | void paintComponent(Graphics2D g2D)(Code) | | Paints this class. Updates all variables, then paints its parent, since
this class itself doesn't have anything to paint.
Parameters: g2D - The graphics context for calculations and painting. |
resetFontAreaModel | final void resetFontAreaModel(boolean reset)(Code) | | Resets the model for this class. The model is used for shrinking and
growing of its components based on the maximum size of this class. If this
method is called, then the next time the maximum size is set, this classes
model maximum size will be made equal to the new maximum size. Effectively
what this does is ensure that whenever this objects maximum size is equal
to the one given, then all of the components will take on their default
model sizes. Note: This is only useful when auto model max sizing is
disabled.
Parameters: reset - True causes the max model size to be set upon the next maxsizing. |
setFontColor | final void setFontColor(Color c)(Code) | | Changes the color of this font. This accepts all Color.* compatible
values.
Parameters: c - Then new color of the font. |
setFontName | final void setFontName(String n)(Code) | | Changes the name of this font. This accepts the same values as
the Font classes constructor
Font (String name, int style, int point) .
Parameters: n - Then new name of the font. |
setFontPointModel | final void setFontPointModel(int p)(Code) | | Changes the model font's point size. This is the size that the font would
be if the maximum size of the area was equal to the model size of the area.
Otherwise, a ratio based on maximum size / model size is taken and applied
to this point, producing the actual font point.
Parameters: p - The new model font point. |
setFontStyle | final void setFontStyle(int s)(Code) | | Changes the style of this font. This accepts the same values as
the Font classes constructor
Font (String name, int style, int point) .
Parameters: s - Then new style of the font. |
updateFontArea | final void updateFontArea()(Code) | | Updates all this classes variables. First updates it's parent class, then
then updates its own variables.
|
Methods inherited from net.sourceforge.chart2d.Area | final int applyRatio(int model, float ratio)(Code)(Java Doc) final boolean getAreaNeedsUpdate()(Code)(Java Doc) final boolean getAutoSize(int which)(Code)(Java Doc) final Color getBackgroundColor()(Code)(Java Doc) final boolean getBackgroundExistence()(Code)(Java Doc) final Color getBorderColor()(Code)(Java Doc) final Color getBorderColor(int which)(Code)(Java Doc) final boolean getBorderExistence()(Code)(Java Doc) final boolean getBorderExistence(int which)(Code)(Java Doc) final int getBorderThickness(int which)(Code)(Java Doc) final int getBorderThickness()(Code)(Java Doc) final int getBorderThicknessModel()(Code)(Java Doc) final int getBorderThicknessModel(int which)(Code)(Java Doc) final boolean getGapExistence()(Code)(Java Doc) final boolean getGapExistence(int which)(Code)(Java Doc) final int getGapThickness()(Code)(Java Doc) final int getGapThickness(int which)(Code)(Java Doc) final int getGapThicknessModel()(Code)(Java Doc) final int getJustifications(int which)(Code)(Java Doc) int getLightSource()(Code)(Java Doc) final int getOffsetThickness()(Code)(Java Doc) final float getRatio(int which)(Code)(Java Doc) final boolean getResetAreaModel()(Code)(Java Doc) final Dimension getSize(int which)(Code)(Java Doc) final Point getSizeLocation(int which)(Code)(Java Doc) final Dimension getSpaceSize(int which)(Code)(Java Doc) final Point getSpaceSizeLocation(int which)(Code)(Java Doc) void paintComponent(Graphics2D g2D)(Code)(Java Doc) final void resetAreaModel(boolean reset)(Code)(Java Doc) final void setAutoJustifys(boolean horizontal, boolean vertical)(Code)(Java Doc) final void setAutoSizes(boolean maxModel, boolean min)(Code)(Java Doc) final void setBackgroundColor(Color color)(Code)(Java Doc) final void setBackgroundExistence(boolean existence)(Code)(Java Doc) final void setBorderAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc) final void setBorderColor(Color color)(Code)(Java Doc) final void setBorderColors(Color left, Color right, Color top, Color bottom)(Code)(Java Doc) final void setBorderCornerAssociations(int leftTop, int leftBottom, int rightTop, int rightBottom)(Code)(Java Doc) final void setBorderExistence(boolean existences)(Code)(Java Doc) final void setBorderExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc) final void setBorderThicknessModel(int thickness)(Code)(Java Doc) final void setBorderThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc) final void setCustomRatio(int which, boolean customize, float ratio)(Code)(Java Doc) final void setGapAssociations(boolean leftRight, boolean leftTop, boolean leftBottom, boolean rightTop, boolean rightBottom, boolean topBottom)(Code)(Java Doc) final void setGapExistence(boolean existence)(Code)(Java Doc) final void setGapExistences(boolean left, boolean right, boolean top, boolean bottom)(Code)(Java Doc) final void setGapThicknessModel(int thickness)(Code)(Java Doc) final void setGapThicknessModels(int left, int right, int top, int bottom)(Code)(Java Doc) final void setJustifications(int horizontal, int vertical)(Code)(Java Doc) void setLightSource(int source)(Code)(Java Doc) final void setLockRatios(boolean lock)(Code)(Java Doc) final void setSize(int which, Dimension size)(Code)(Java Doc) final void setSizeLocation(int which, Point location)(Code)(Java Doc) final void setSpaceSize(int which, Dimension size)(Code)(Java Doc) final void setSpaceSizeLocation(int which, Point location)(Code)(Java Doc) final void updateArea()(Code)(Java Doc)
|
|
|