java.lang.Object | |||
↳ | org.jfree.chart.axis.Axis | ||
↳ | org.jfree.chart.axis.ValueAxis | ||
↳ | org.jfree.chart.axis.PeriodAxis |
An axis that displays a date scale based on a
RegularTimePeriod
. This axis works when
displayed across the bottom or top of a plot, but is broken for display at
the left or right of charts.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new axis.
| |||||||||||
Creates a new axis.
| |||||||||||
This constructor is deprecated.
As of version 1.0.13, you should use the constructor that
specifies a Locale also.
| |||||||||||
Creates a new axis.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the axis.
| |||||||||||
Configures the axis to work with the current plot.
| |||||||||||
Draws the axis on a Java 2D graphics device (such as the screen or a
printer).
| |||||||||||
Tests the axis for equality with an arbitrary object.
| |||||||||||
Returns the class used to create the first and last time periods for
the axis range when the auto-range flag is set to
true . | |||||||||||
Returns the first time period in the axis range.
| |||||||||||
Returns an array of label info records.
| |||||||||||
Returns the last time period in the axis range.
| |||||||||||
Returns the locale for this axis.
| |||||||||||
Returns the class that controls the spacing of the major tick marks.
| |||||||||||
Returns the inside length for the minor tick marks.
| |||||||||||
Returns the outside length for the minor tick marks.
| |||||||||||
Returns the paint used to display minor tick marks, if they are
visible.
| |||||||||||
Returns the stroke used to display minor tick marks, if they are
visible.
| |||||||||||
Returns the class that controls the spacing of the minor tick marks.
| |||||||||||
Returns the time zone used to convert the periods defining the axis
range into absolute milliseconds.
| |||||||||||
Returns a hash code for this object.
| |||||||||||
Returns the flag that controls whether or not minor tick marks
are displayed for the axis.
| |||||||||||
Converts a coordinate in Java2D space to the corresponding data value,
assuming that the axis runs along one edge of the specified dataArea.
| |||||||||||
Calculates the positions of the ticks for the axis, storing the results
in the tick list (ready for drawing).
| |||||||||||
Estimates the space (height or width) required to draw the axis.
| |||||||||||
Sets the class used to create the first and last time periods for the
axis range when the auto-range flag is set to
true and
sends an AxisChangeEvent to all registered listeners. | |||||||||||
Sets the first time period in the axis range and sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the array of label info records and sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the last time period in the axis range and sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the class that controls the spacing of the major tick marks, and
sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the inside length of the minor tick marks and sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the outside length of the minor tick marks and sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the paint used to display minor tick marks, if they are
visible, and sends a
AxisChangeEvent to all registered
listeners. | |||||||||||
Sets the stroke used to display minor tick marks, if they are
visible, and sends a
AxisChangeEvent to all registered
listeners. | |||||||||||
Sets the flag that controls whether or not minor tick marks
are displayed for the axis, and sends a
AxisChangeEvent
to all registered listeners. | |||||||||||
Sets the class that controls the spacing of the minor tick marks, and
sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the range for the axis, if requested, sends an
AxisChangeEvent to all registered listeners. | |||||||||||
Sets the time zone that is used to convert the time periods into
absolute milliseconds.
| |||||||||||
Converts a data value to a coordinate in Java2D space, assuming that the
axis runs along one edge of the specified dataArea.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Rescales the axis to ensure that all data is visible.
| |||||||||||
Draws the tick labels for one "band" of time periods.
| |||||||||||
Draws the tick marks for the axis.
| |||||||||||
Draws the major and minor tick marks for an axis that lies at the top or
bottom of the plot.
| |||||||||||
Draws the tick marks for a vertical axis.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new axis.
label | the axis label (null permitted). |
---|---|
first | the first time period in the axis range
(null not permitted). |
last | the last time period in the axis range
(null not permitted).
|
This constructor is deprecated.
As of version 1.0.13, you should use the constructor that
specifies a Locale also.
Creates a new axis.
label | the axis label (null permitted). |
---|---|
first | the first time period in the axis range
(null not permitted). |
last | the last time period in the axis range
(null not permitted). |
timeZone | the time zone (null not permitted). |
Creates a new axis.
label | the axis label (null permitted). |
---|---|
first | the first time period in the axis range
(null not permitted). |
last | the last time period in the axis range
(null not permitted). |
timeZone | the time zone (null not permitted). |
locale | the locale (null not permitted). |
Returns a clone of the axis.
CloneNotSupportedException | this class is cloneable, but subclasses may not be. |
---|
Configures the axis to work with the current plot. Override this method to perform any special processing (such as auto-rescaling).
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 (determines where to draw the axis). |
plotArea | the area within which the axes and plot should be drawn. |
dataArea | the area within which the data should be drawn. |
edge | the axis location (null not permitted). |
plotState | collects information about the plot
(null permitted). |
null
).
Tests the axis for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the class used to create the first and last time periods for
the axis range when the auto-range flag is set to true
.
null
).
Returns the first time period in the axis range.
null
).
Returns an array of label info records.
Returns the last time period in the axis range.
null
).
Returns the class that controls the spacing of the major tick marks.
null
).
Returns the inside length for the minor tick marks.
Returns the outside length for the minor tick marks.
Returns the paint used to display minor tick marks, if they are visible.
null
).
Returns the stroke used to display minor tick marks, if they are visible.
null
).
Returns the class that controls the spacing of the minor tick marks.
null
).
Returns the time zone used to convert the periods defining the axis range into absolute milliseconds.
null
).
Returns a hash code for this object.
Returns the flag that controls whether or not minor tick marks are displayed for the axis.
Converts a coordinate in Java2D space to the corresponding data value, assuming that the axis runs along one edge of the specified dataArea.
java2DValue | the coordinate in Java2D space. |
---|---|
area | the area in which the data is plotted. |
edge | the edge along which the axis lies. |
Calculates the positions of the ticks for the axis, storing the results in the tick list (ready for drawing).
g2 | the graphics device. |
---|---|
state | the axis state. |
dataArea | the area inside the axes. |
edge | the edge on which the axis is located. |
Estimates the space (height or width) required to draw the axis.
g2 | the graphics device. |
---|---|
plot | the plot that the axis belongs to. |
plotArea | the area within which the plot (including axes) should be drawn. |
edge | the axis location. |
space | space already reserved. |
Sets the class used to create the first and last time periods for the
axis range when the auto-range flag is set to true
and
sends an AxisChangeEvent
to all registered listeners.
c | the class (null not permitted).
|
---|
Sets the first time period in the axis range and sends an
AxisChangeEvent
to all registered listeners.
first | the time period (null not permitted).
|
---|
Sets the array of label info records and sends an
AxisChangeEvent
to all registered listeners.
info | the info. |
---|
Sets the last time period in the axis range and sends an
AxisChangeEvent
to all registered listeners.
last | the time period (null not permitted).
|
---|
Sets the class that controls the spacing of the major tick marks, and
sends an AxisChangeEvent
to all registered listeners.
c | the class (a subclass of RegularTimePeriod is
expected).
|
---|
Sets the inside length of the minor tick marks and sends an
AxisChangeEvent
to all registered listeners.
length | the length. |
---|
Sets the outside length of the minor tick marks and sends an
AxisChangeEvent
to all registered listeners.
length | the length. |
---|
Sets the paint used to display minor tick marks, if they are
visible, and sends a AxisChangeEvent
to all registered
listeners.
paint | the paint (null not permitted).
|
---|
Sets the stroke used to display minor tick marks, if they are
visible, and sends a AxisChangeEvent
to all registered
listeners.
stroke | the stroke (null not permitted).
|
---|
Sets the flag that controls whether or not minor tick marks
are displayed for the axis, and sends a AxisChangeEvent
to all registered listeners.
visible | the flag. |
---|
Sets the class that controls the spacing of the minor tick marks, and
sends an AxisChangeEvent
to all registered listeners.
c | the class (a subclass of RegularTimePeriod is
expected).
|
---|
Sets the range for the axis, if requested, sends an
AxisChangeEvent
to all registered listeners. As a side-effect,
the auto-range flag is set to false
(optional).
range | the range (null not permitted). |
---|---|
turnOffAutoRange | a flag that controls whether or not the auto range is turned off. |
notify | a flag that controls whether or not listeners are notified. |
Sets the time zone that is used to convert the time periods into absolute milliseconds.
zone | the time zone (null not permitted).
|
---|
Converts a data value to a coordinate in Java2D space, assuming that the axis runs along one edge of the specified dataArea.
Note that it is possible for the coordinate to fall outside the area.
value | the data value. |
---|---|
area | the area for plotting the data. |
edge | the edge along which the axis lies. |
Rescales the axis to ensure that all data is visible.
Draws the tick labels for one "band" of time periods.
band | the band index (zero-based). |
---|---|
g2 | the graphics device. |
state | the axis state. |
dataArea | the data area. |
edge | the edge where the axis is located. |
Draws the tick marks for the axis.
g2 | the graphics device. |
---|---|
state | the axis state. |
dataArea | the data area. |
edge | the edge. |
Draws the major and minor tick marks for an axis that lies at the top or bottom of the plot.
g2 | the graphics device. |
---|---|
state | the axis state. |
dataArea | the data area. |
edge | the edge. |
Draws the tick marks for a vertical axis.
g2 | the graphics device. |
---|---|
state | the axis state. |
dataArea | the data area. |
edge | the edge. |