| java.lang.Object net.sourceforge.chart2d.Area net.sourceforge.chart2d.FontArea net.sourceforge.chart2d.TitledArea net.sourceforge.chart2d.AxisArea net.sourceforge.chart2d.XAxisArea
XAxisArea | final class XAxisArea extends AxisArea (Code) | | An x Axis for chart graphs. Supports both vertical and horizontal bar
charts, low number of points line and scatter charts. Bullets can be either
aligned with the labels as in horizontal bar charts or between the labels as
int vertical bar charts. Label font size, type, style, and color are
adjustable. Minimum gaps between labels, ticks, and labels and bullets
may be specified. Ticks size and color may be specified. A title and
its font may also be customized. The title may be justified withing the
width of the axis, left, right or center.
Supports all of bordered areas customizability except for auto min sizing.
If auto minimum sizing, then the title will likely be far apart from the
axis. It does support everything with auto min sizing disabled. It is
recommended that the auto justification be disabled. The xAxis must be
butted up against a graph area, this is best done manually.
This is its default.
|
Constructor Summary | |
| XAxisArea() Creates a new xAxis Area with the default settings. |
XAxisArea | XAxisArea()(Code) | | Creates a new xAxis Area with the default settings.
|
getBetweenTicksGapThicknessModel | final int getBetweenTicksGapThicknessModel()(Code) | | Returns the model thickness of the gap between the ticks.
The thickness. |
getLabels | final TextArea[] getLabels(Graphics2D g2D)(Code) | | The labels of the axis. The lowest order array label is the top
most label.
Parameters: g2D - The graphics context to use for calculations. The text labels; this will never be null. |
getTextList | final HorizontalTextListArea getTextList()(Code) | | Returns the HorizontalTextListArea for this X Axis.
Get for standard configuration of the x axis.
This x axis component. |
getTicks | final Rectangle[] getTicks(Graphics2D g2D)(Code) | | The bounds of the ticks. The bounds of the ticks specify the locations
and sizes of each actual tick. The lowest order array tick is the left
most tick.
Parameters: g2D - The graphics context to use for calculations. The bounds of the ticks. This will never be null. |
getTicksAlignment | final int getTicksAlignment()(Code) | | Returns how the ticks are aligned with respect to the labels.
int With values of either Area.CENTERED or Area.BETWEEN |
getTicksColor | final Color getTicksColor()(Code) | | Returns the color of the ticks.
The color. |
getTicksSizeModel | final Dimension getTicksSizeModel()(Code) | | The model size for the ticks. If auto maximum sizing is enabled,
then the actual tick size can grow and shrink; in this case a ratio based
on the maximum area size / model area size is computed and applied to the
model size in order to find the actual size. With maximum sizing
disabled, the actual size is the model size.
The model size for the ticks. [Do not pass null] |
getXAxisAreaNeedsUpdate | final boolean getXAxisAreaNeedsUpdate()(Code) | | Indicates whether some property of this class has changed.
True if some property has changed. |
paintComponent | final void paintComponent(Graphics2D g2D)(Code) | | Paints all the components of this class. First all variables are updated.
Parameters: g2D - The graphics context for calculations and painting. |
resetXAxisModel | final void resetXAxisModel(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. |
setBetweenTicksAndLabelsGapExistence | final void setBetweenTicksAndLabelsGapExistence(boolean existence)(Code) | | The existence of a gap between the row of labels and the row of ticks. If
the gap does
not exist, then it will not be used in calculations.
Parameters: existence - The existence of a gap between the labels and ticks. Iftrue, then they do. |
setBetweenTicksAndLabelsGapThicknessModel | final void setBetweenTicksAndLabelsGapThicknessModel(int gap)(Code) | | The model thickness for the gap between the row of labels and the row of
ticks. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness. This thickness
is not used in calculations if either the ticks or labels do not exist.
Parameters: gap - The model thickness for the gap between the labels and ticks. |
setBetweenTicksGapExistence | final void setBetweenTicksGapExistence(boolean existence)(Code) | | The existence of a gap between each tick and the next. If the gap does
not exist, then it will not be used in calculations.
Parameters: existence - The existence of a gap between each tick and the next. Iftrue, then they do. |
setBetweenTicksGapThicknessModel | final void setBetweenTicksGapThicknessModel(int gap)(Code) | | The model thickness for the gap between each tick. If auto maximum sizing
is enabled,
then the actual thickness size can grow and shrink; in this case a ratio
based
on the maximum area size / model area size is computed and applied to the
model thickness in order to find the actual thickness. With maximum sizing
disabled, the actual thickness is the model thickness.
Parameters: gap - The model thickness for the gap between each tick. |
setNumTicks | final void setNumTicks(int num)(Code) | | The number of ticks should be equal to the number of x axis labels at all
times, EXCEPT with a type of chart with a (LABELSBOTTOM x axis and a
graph components alignment is true).
Parameters: num - The number of x axis ticks. |
setTicksAlignment | final void setTicksAlignment(int alignment)(Code) | | The horizontal alignment of the ticks respective to the labels. The
bullets can either be place in line with each label, or in in line with
the middle of the space between each label. That is, bullets can be
centered in the middle of the label, or placed between each label.
Parameters: alignment - With values of either Area.CENTERED or Area.BETWEEN |
setTicksColor | final void setTicksColor(Color color)(Code) | | The color for the ticks.
Parameters: color - The x Axis tick color. |
setTicksSizeModel | final void setTicksSizeModel(Dimension size)(Code) | | The model size for the ticks. If auto maximum sizing is enabled,
then the actual tick size can grow and shrink; in this case a ratio based
on the maximum area size / model area size is computed and applied to the
model size in order to find the actual size. With maximum sizing
disabled, the actual size is the model size.
Parameters: size - The model size for the ticks. [Do not pass null] |
setType | final void setType(int type)(Code) | | Specifies the type of the x Axis. The type refers to what type of chart
it supports. In any chart the objects are plotted against one side,
the values side, the values side has raw numbers like 0, 100, 200, etc.
The other side, the labels side, has the labels for the data being plotted,
like September, November, etc. If the labels side is along the bottom
of the graph, then set the type to LABELSBOTTOM. If the labels side is
along the left/right side of the graph then set the type to LABELSLEFT.
Parameters: type - Whether this axis is used for labels bottom or labels leftapplications. |
updateXAxisArea | final void updateXAxisArea(Graphics2D g2D)(Code) | | Updates this parent's variables, and this' variables.
Parameters: g2D - The graphics context to use for calculations. |
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)
|
|
|