public class TickData extends java.lang.Object
| Constructor and Description |
|---|
TickData(double pos,
java.lang.Comparable<?> key,
java.lang.String keyLabel)
Creates a new instance.
|
TickData(double pos,
double dataValue)
Creates a new instance.
|
TickData(TickData source,
int vertexIndex)
Creates a new instance by copying an existing instance but altering
the vertex index.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getAnchorPt()
Returns the anchor point.
|
double |
getDataValue()
Returns the data value when the tick data is for a
NumberAxis3D,
and Double.NaN otherwise. |
java.lang.Comparable<?> |
getKey()
Returns the key when the tick data is for a
CategoryAxis3D,
and null otherwise. |
java.lang.String |
getKeyLabel()
Returns the key label.
|
double |
getPos()
Returns the position of the tick, as a percentage along the axis (for
example, 0.5 is halfway along the axis).
|
int |
getVertexIndex()
Returns the vertex index that is the anchor point for the tick mark.
|
void |
setAnchorPt(java.awt.geom.Point2D anchorPt)
Sets the anchor point.
|
void |
setVertexIndex(int index)
Sets the vertex index.
|
public TickData(double pos, java.lang.Comparable<?> key, java.lang.String keyLabel)
pos - the position along the axis as a percentage of the range.key - the key.keyLabel - the key label.public TickData(double pos, double dataValue)
pos - the position along the axis as a percentage of the range.dataValue - the data value.public double getPos()
public java.lang.Comparable<?> getKey()
CategoryAxis3D,
and null otherwise.null).public java.lang.String getKeyLabel()
null).public double getDataValue()
NumberAxis3D,
and Double.NaN otherwise.public int getVertexIndex()
public void setVertexIndex(int index)
index - the index.public java.awt.geom.Point2D getAnchorPt()
public void setAnchorPt(java.awt.geom.Point2D anchorPt)
anchorPt - the anchor point.