java.lang.Object | ||||
↳ | org.jfree.chart.axis.Axis | |||
↳ | org.jfree.chart.axis.ValueAxis | |||
↳ | org.jfree.chart.axis.NumberAxis | |||
↳ | org.jfree.chart.axis.SymbolAxis |
A standard linear value axis that replaces integer values with symbols.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_GRID_BAND_ALTERNATE_PAINT | The default paint for alternate grid bands. | ||||||||||
DEFAULT_GRID_BAND_PAINT | The default grid band paint. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a symbol axis, using default attribute values where
necessary.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Draws the axis on a Java 2D graphics device (such as the screen or a
printer).
| |||||||||||
Tests this axis for equality with an arbitrary object.
| |||||||||||
Returns the paint used for alternate grid bands.
| |||||||||||
Returns the paint used to color the grid bands.
| |||||||||||
Returns an array of the symbols for the axis.
| |||||||||||
Returns
true if the grid bands are showing, and
false otherwise. | |||||||||||
Calculates the positions of the tick labels for the axis, storing the
results in the tick label list (ready for drawing).
| |||||||||||
Sets the paint used for alternate grid bands and sends a
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the grid band paint and sends an
AxisChangeEvent to
all registered listeners. | |||||||||||
Sets the visibility of the grid bands and notifies registered
listeners that the axis has been modified.
| |||||||||||
Converts a value to a string, using the list of symbols.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Rescales the axis to ensure that all data is visible.
| |||||||||||
Draws the grid bands.
| |||||||||||
Draws the grid bands for the axis when it is at the top or bottom of
the plot.
| |||||||||||
Draws the grid bands for the axis when it is at the top or bottom of
the plot.
| |||||||||||
Calculates the positions of the tick labels for the axis, storing the
results in the tick label list (ready for drawing).
| |||||||||||
Calculates the positions of the tick labels for the axis, storing the
results in the tick label list (ready for drawing).
| |||||||||||
This operation is not supported by this axis.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The default paint for alternate grid bands.
Constructs a symbol axis, using default attribute values where necessary.
label | the axis label (null permitted). |
---|---|
sv | the list of symbols to display instead of the numeric values. |
Draws the axis on a Java 2D graphics device (such as the screen or a printer).
g2 | the graphics device (null not permitted). |
---|---|
cursor | the cursor location. |
plotArea | the area within which the plot and axes should be drawn
(null not permitted). |
dataArea | the area within which the data should be drawn
(null not permitted). |
edge | the axis location (null not permitted). |
plotState | collects information about the plot
(null permitted). |
null
).
Tests this axis for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the paint used for alternate grid bands.
null
).Returns the paint used to color the grid bands.
null
).Returns true
if the grid bands are showing, and
false
otherwise.
true
if the grid bands are showing, and
false
otherwise.Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
g2 | the graphics device. |
---|---|
state | the axis state. |
dataArea | the area in which the data should be drawn. |
edge | the location of the axis. |
Sets the paint used for alternate grid bands and sends a
AxisChangeEvent
to all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the grid band paint and sends an AxisChangeEvent
to
all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the visibility of the grid bands and notifies registered listeners that the axis has been modified.
flag | the new setting. |
---|
Converts a value to a string, using the list of symbols.
value | value to convert. |
---|
Rescales the axis to ensure that all data is visible.
Draws the grid bands. Alternate bands are colored using
gridBandPaint
(
DEFAULT_GRID_BAND_PAINT
by
default).
g2 | the graphics device. |
---|---|
plotArea | the area within which the chart should be drawn. |
dataArea | the area within which the plot should be drawn (a subset of the drawArea). |
edge | the axis location. |
ticks | the ticks. |
Draws the grid bands for the axis when it is at the top or bottom of the plot.
g2 | the graphics device. |
---|---|
plotArea | the area within which the chart should be drawn. |
dataArea | the area within which the plot should be drawn (a subset of the drawArea). |
firstGridBandIsDark | True: the first grid band takes the
color of gridBandPaint |
ticks | the ticks. |
Draws the grid bands for the axis when it is at the top or bottom of the plot.
g2 | the graphics device. |
---|---|
drawArea | the area within which the chart should be drawn. |
plotArea | the area within which the plot should be drawn (a subset of the drawArea). |
firstGridBandIsDark | True: the first grid band takes the
color of gridBandPaint |
ticks | a list of ticks. |
Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
g2 | the graphics device. |
---|---|
dataArea | the area in which the data should be drawn. |
edge | the location of the axis. |
Calculates the positions of the tick labels for the axis, storing the results in the tick label list (ready for drawing).
g2 | the graphics device. |
---|---|
dataArea | the area in which the plot should be drawn. |
edge | the location of the axis. |
This operation is not supported by this axis.
g2 | the graphics device. |
---|---|
dataArea | the area in which the plot and axes should be drawn. |
edge | the edge along which the axis is drawn. |