public class Axis
extends java.lang.Object
Constructor and Description |
---|
Axis(Base base,
int index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the label of the axis.
|
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 |
isTickVisible()
Returns the visibility of the axis label.
|
void |
paint(Graphics g)
Draw the axis.
|
void |
reset()
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.
|
void |
setLabel(java.lang.String label)
Sets the label.
|
Axis |
setRotation(double rotation)
Sets the rotation degree of tick strings.
|
void |
setTicks(java.lang.String[] ticks,
double[] location)
Add a label to the axis at given location.
|
Axis |
setTickVisible(boolean v)
Set the visibility of the axis label.
|
int |
slices()
Returns the number of slices in linear scale.
|
public Axis(Base base, int index)
public void reset()
public Axis setRotation(double rotation)
rotation
- rotation degree.public void setTicks(java.lang.String[] ticks, double[] location)
public int slices()
public Axis setGridVisible(boolean v)
public boolean isGridVisible()
public Axis setFrameVisible(boolean v)
public boolean isFrameVisible()
public Axis setTickVisible(boolean v)
public boolean isTickVisible()
public void setLabel(java.lang.String label)
public java.lang.String getLabel()
public void paint(Graphics g)