com.jinsight.jetchart
Class Axis
java.lang.Object
|
+--com.jinsight.jetchart.Axis
- Direct Known Subclasses:
- XAxis, YAxis
- public abstract class Axis
- extends java.lang.Object
This class is the abstract representation of the vertical and horizontal axis.
Two subclasses extend the Axis class:
- XAxis - Provides properties and methods of the horizontal axis.
- YAxis - Provides properties and methods of the vertical axis.
These classes have no public constructors, and can only be accessed through
'get' methods implemented in classes ScatterGraph
and
GraphSet
.
- See Also:
GraphSet
,
ScatterGraph
,
XAxis
,
YAxis
Constructor Summary |
Axis()
|
Method Summary |
protected void |
finalize()
|
void |
set3DColor(java.awt.Color axis3DColor)
Sets axis 3D color. |
void |
setColor(java.awt.Color color)
Sets axis color. |
void |
setEnabled(boolean isEnabled)
Enables/disables the axis. |
void |
setThickness(int thickness)
Sets the axis thickness. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Axis
public Axis()
setEnabled
public void setEnabled(boolean isEnabled)
- Enables/disables the axis.
- Parameters:
isEnabled
- A boolean value(true/false).
setThickness
public void setThickness(int thickness)
- Sets the axis thickness. Default value is 1 pixel.
This method only has effect with 2D charts.
- Parameters:
thickness
- An integer number equal to or greater than 1.
setColor
public void setColor(java.awt.Color color)
- Sets axis color. In 3D mode, this property has no effect on axis color.
The
set3DColor()
must be used instead.
- Parameters:
color
- A Color object.- See Also:
GenericGraph.set3DEnabled(boolean)
,
set3DColor(java.awt.Color)
set3DColor
public void set3DColor(java.awt.Color axis3DColor)
- Sets axis 3D color. In 3D mode, axis is painted in this color.
- Parameters:
axis3DColor
- A Color object.- See Also:
setColor(java.awt.Color)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object