public class Axis
extends java.lang.Object
Constructor and Description |
---|
Axis(Base base,
int index)
Constructor.
|
Axis(Base base,
int index,
java.lang.String label)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Axis |
addLabel(java.lang.String[] label,
double[] location)
Add a label to the axis at given location.
|
Axis |
addLabel(java.lang.String label,
double location)
Add a label to the axis at given location.
|
java.lang.String |
getAxisLabel()
Returns the label of the axis.
|
int |
getLinearSlices()
Returns the number of slices in linear scale.
|
boolean |
isFrameVisible()
Returns the visibility of the frame grid lines and their labels.
|
boolean |
isGridVisible()
Returns the visibility of the grid lines and their labels.
|
boolean |
isLabelVisible()
Returns the visibility of the axis label.
|
void |
paint(Graphics g)
Draw the axis.
|
Axis |
removeLabel(java.lang.String label)
Remove a label from the axis.
|
Axis |
setAxisLabel(java.lang.String label)
Sets the label of this axis.
|
Axis |
setBase(Base base)
Set the base coordinate space.
|
Axis |
setFrameVisible(boolean v)
Set the visibility of the frame grid lines and their labels.
|
Axis |
setGridVisible(boolean v)
Set the visibility of the grid lines and their labels.
|
Axis |
setLabelVisible(boolean v)
Set the visibility of the axis label.
|
Axis |
setRotation(double rotation)
Sets the rotation degree of grid label strings.
|
public Axis(Base base, int index)
public Axis(Base base, int index, java.lang.String label)
public Axis setRotation(double rotation)
rotation
- rotation degree.public Axis addLabel(java.lang.String label, double location)
public Axis addLabel(java.lang.String[] label, double[] location)
public Axis removeLabel(java.lang.String label)
public int getLinearSlices()
public Axis setGridVisible(boolean v)
public boolean isGridVisible()
public Axis setFrameVisible(boolean v)
public boolean isFrameVisible()
public Axis setLabelVisible(boolean v)
public boolean isLabelVisible()
public Axis setAxisLabel(java.lang.String label)
public java.lang.String getAxisLabel()
public void paint(Graphics g)