|
|||||||||
| 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.TitledArea
|
+--net.sourceforge.chart2d.AxisArea
|
+--net.sourceforge.chart2d.YAxisArea
An y 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 vertical bar charts or between the labels as int horizontal 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 within the width of the axis, bottom, top 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 yAxis must be butted up against a graph area, this is best done manually. This is its default.
| 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) |
YAxisArea()
Creates a new YAxisArea with the following default settings: setAutoSizes (false, false); setAutoJustifys (false, false); setTitleJustifications (LEFT, CENTER); setTicksSizeModel (new Dimension (3, 3)); setType (LABELSBOTTOM); setTextListJustifications (RIGHT, CENTER); setLabels (new String[0]); setTicksColor (Color.black); setNumTicks (0); setTitleRotateLeft (true); setBackgroundExistence (false); setBorderExistences (false, false, false, false); setGapExistences (false, false, false, false); textList.setBulletsRelation (TOP); textList.setAutoJustifys (false, false); textList.setBorderExistences (false, false, false, false); textList.setGapExistences (false, false, false, false); textList.setBackgroundExistence (false); resetYAxisModel (true); |
| Method Summary | |
(package private) int |
getBetweenTicksGapThicknessModel()
Returns the model thickness of the gap between the ticks. |
(package private) TextArea[] |
getLabels(java.awt.Graphics2D g2D)
The labels of the axis. |
(package private) VerticalTextListArea |
getTextList()
Returns the Text List Area for this Y Axis. |
(package private) java.awt.Rectangle[] |
getTicks(java.awt.Graphics2D g2D)
The bounds of the ticks. |
(package private) int |
getTicksAlignment()
Returns how the ticks are aligned with respect to the labels. |
(package private) java.awt.Color |
getTicksColor()
Returns the color of the ticks. |
(package private) boolean |
getYAxisAreaNeedsUpdate()
Indicates whether some property of this class has changed. |
(package private) void |
paintComponent(java.awt.Graphics2D g2D)
Paints all the components of this class. |
(package private) void |
resetYAxisModel(boolean reset)
Resets the model for this class. |
(package private) void |
setBetweenLabelsGapExistence(boolean existence)
The existence of a gap between each label and the next. |
(package private) void |
setBetweenTicksAndLabelsGapExistence(boolean existence)
The existence of a gap between the row of labels and the row of ticks. |
(package private) void |
setBetweenTicksAndLabelsGapThicknessModel(int gap)
The model thickness for the gap between the row of labels and the row of ticks. |
(package private) void |
setBetweenTicksGapExistence(boolean existence)
The existence of a gap between each tick and the next. |
(package private) void |
setBetweenTicksGapThicknessModel(int gap)
The model thickness for the gap between each tick. |
(package private) void |
setNumTicks(int num)
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). |
(package private) void |
setTicksAlignment(int alignment)
The vertical alignment of the ticks respective to the labels. |
(package private) void |
setTicksColor(java.awt.Color color)
The color for the ticks. |
(package private) void |
setTicksSizeModel(java.awt.Dimension size)
The model size for the ticks. |
(package private) void |
setType(int type)
Specifies the type of the y Axis. |
(package private) void |
updateYAxisArea(java.awt.Graphics2D g2D)
Updates this parent's variables, and this' variables. |
| 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 |
YAxisArea()
| Method Detail |
void setType(int type)
setType in class AxisAreatype - Whether this axis is used for labels bottom or labels left
applications.void setTicksColor(java.awt.Color color)
setTicksColor in class AxisAreacolor - The y Axis tick color.void setTicksAlignment(int alignment)
setTicksAlignment in class AxisAreaalignment - With values of either Area.CENTERED or Area.BETWEENvoid setNumTicks(int num)
setNumTicks in class AxisAreanum - The number of y axis ticks.void setTicksSizeModel(java.awt.Dimension size)
setTicksSizeModel in class AxisAreasize - The model size for the ticks. [Do not pass null]void setBetweenLabelsGapExistence(boolean existence)
existence - The existence of a gap between each label and the next. If
true, then they do.void setBetweenTicksGapExistence(boolean existence)
setBetweenTicksGapExistence in class AxisAreaexistence - The existence of a gap between each tick and the next. If
true, then they do.void setBetweenTicksGapThicknessModel(int gap)
setBetweenTicksGapThicknessModel in class AxisAreagap - The model thickness for the gap between each tick.void setBetweenTicksAndLabelsGapExistence(boolean existence)
setBetweenTicksAndLabelsGapExistence in class AxisAreaexistence - The existence of a gap between the labels and ticks. If
true, then they do.void setBetweenTicksAndLabelsGapThicknessModel(int gap)
setBetweenTicksAndLabelsGapThicknessModel in class AxisAreagap - The model thickness for the gap between the labels and ticks.VerticalTextListArea getTextList()
TextArea[] getLabels(java.awt.Graphics2D g2D)
getLabels in class AxisAreag2D - The graphics context to use for calculations.java.awt.Rectangle[] getTicks(java.awt.Graphics2D g2D)
getTicks in class AxisAreag2D - The graphics context to use for calculations.int getBetweenTicksGapThicknessModel()
getBetweenTicksGapThicknessModel in class AxisAreajava.awt.Color getTicksColor()
getTicksColor in class AxisAreaint getTicksAlignment()
getTicksAlignment in class AxisAreaboolean getYAxisAreaNeedsUpdate()
void updateYAxisArea(java.awt.Graphics2D g2D)
g2D - The graphics context to use for calculations.void resetYAxisModel(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 TitledAreag2D - The graphics context for calculations and painting.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||