public interface Axis3D extends ChartElement
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(Axis3DChangeListener listener)
Registers a listener so that it receives notification of changes to the
axis.
|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Point2D startPt,
java.awt.geom.Point2D endPt,
java.awt.geom.Point2D opposingPt,
java.util.List<TickData> tickData,
RenderingInfo info,
boolean hinting)
Draws the axis along an arbitrary line (between
startPt
and endPt). |
java.awt.Color |
getLabelColor()
Returns the color used to draw the axis label.
|
java.awt.Font |
getLabelFont()
Returns the font that is used to display the main axis label.
|
Range |
getRange()
Returns the axis range (the minimum and maximum values displayed on
the axis).
|
java.awt.Color |
getTickLabelColor()
Returns the color used to draw the axis tick labels.
|
java.awt.Font |
getTickLabelFont()
Returns the font that is used to display the tick labels.
|
boolean |
isInverted()
Returns the flag that determines whether or not the order of values on
the axis is inverted.
|
boolean |
isVisible()
Returns the flag that determines whether or not the axis is drawn
on the chart.
|
void |
removeChangeListener(Axis3DChangeListener listener)
Deregisters a listener so that it no longer receives notification of
changes to the axis.
|
void |
setInverted(boolean inverted)
Sets the flag that determines whether or not the order of values on the
axis is inverted, and sends an
Axis3DChangeEvent to all
registered listeners. |
void |
setLabelColor(java.awt.Color color)
Sets the color used to draw the axis label and sends an
Axis3DChangeEvent to all registered listeners. |
void |
setLabelFont(java.awt.Font font)
Sets the font for the axis label (the main label, not the tick labels)
and sends an
Axis3DChangeEvent to all registered listeners. |
void |
setRange(double min,
double max)
Sets the axis range and sends an
Axis3DChangeEvent to all
registered listeners. |
void |
setRange(Range range)
Sets the axis range and sends an
Axis3DChangeEvent to all
registered listeners. |
void |
setTickLabelColor(java.awt.Color color)
Sets the color used to draw the axis tick labels and sends an
Axis3DChangeEvent to all registered listeners. |
void |
setTickLabelFont(java.awt.Font font)
Sets the font for the tick labels and sends an
Axis3DChangeEvent
to all registered listeners. |
void |
setVisible(boolean visible)
Sets the flag that determines whether or not the axis is drawn on the
chart and sends an
Axis3DChangeEvent to all registered listeners. |
double |
translateToWorld(double value,
double length)
Translates a data value to a world coordinate.
|
receiveboolean isVisible()
setVisible(boolean)void setVisible(boolean visible)
Axis3DChangeEvent to all registered listeners.visible - the flag.isVisible()java.awt.Font getLabelFont()
null).void setLabelFont(java.awt.Font font)
Axis3DChangeEvent to all registered listeners.font - the font (null not permitted).java.awt.Color getLabelColor()
null).void setLabelColor(java.awt.Color color)
Axis3DChangeEvent to all registered listeners.color - the color (null not permitted).java.awt.Font getTickLabelFont()
null).void setTickLabelFont(java.awt.Font font)
Axis3DChangeEvent
to all registered listeners.font - the font (null not permitted).java.awt.Color getTickLabelColor()
null).void setTickLabelColor(java.awt.Color color)
Axis3DChangeEvent to all registered listeners.color - the color (null not permitted).Range getRange()
(0.0, 1.0) for convenience.null).void setRange(Range range)
Axis3DChangeEvent to all
registered listeners.range - the range (null not permitted).void setRange(double min, double max)
Axis3DChangeEvent to all
registered listeners.min - the lower bound for the axis.max - the upper bound for the axis.boolean isInverted()
false.void setInverted(boolean inverted)
Axis3DChangeEvent to all
registered listeners.inverted - the new flag value.double translateToWorld(double value, double length)
(0, 0, 0), we only need to
know the length of the side of the box along which we are translating in
order to do the calculation.value - the data value.length - the box side length.void draw(java.awt.Graphics2D g2, java.awt.geom.Point2D startPt, java.awt.geom.Point2D endPt, java.awt.geom.Point2D opposingPt, java.util.List<TickData> tickData, RenderingInfo info, boolean hinting)
startPt
and endPt). The opposing point is used as a reference
point to know on which side of the axis to draw the labels.g2 - the graphics target (null not permitted).startPt - the starting point (null not permitted).endPt - the end point (null not permitted)opposingPt - an opposing point (null not permitted).tickData - info about the ticks to draw (null not
permitted).info - an object to be populated with rendering info
(null permitted).hinting - a flag that controls whether or not element hinting
should be performed.void addChangeListener(Axis3DChangeListener listener)
listener - the listener (null not permitted).void removeChangeListener(Axis3DChangeListener listener)
listener - the listener (null not permitted).