java.lang.Object
org.jfree.chart3d.axis.TickData
Data related to the tick marks and labels on a chart.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the anchor point.doubleReturns the data value when the tick data is for aNumberAxis3D, andDouble.NaNotherwise.Comparable<?> getKey()Returns the key when the tick data is for aCategoryAxis3D, andnullotherwise.Returns the key label.doublegetPos()Returns the position of the tick, as a percentage along the axis (for example, 0.5 is halfway along the axis).intReturns the vertex index that is the anchor point for the tick mark.voidsetAnchorPt(Point2D anchorPt) Sets the anchor point.voidsetVertexIndex(int index) Sets the vertex index.
-
Constructor Details
-
TickData
Creates a new instance. This constructor is used for category axes.- Parameters:
pos- the position along the axis as a percentage of the range.key- the key.keyLabel- the key label.
-
TickData
Creates a new instance. This constructor is used for numerical axes.- Parameters:
pos- the position along the axis as a percentage of the range.dataValue- the data value.
-
TickData
Creates a new instance by copying an existing instance but altering the vertex index.- Parameters:
source- a source to copy (nullnot permitted).vertexIndex- the vertex index.
-
-
Method Details
-
getPos
Returns the position of the tick, as a percentage along the axis (for example, 0.5 is halfway along the axis).- Returns:
- The position.
-
getKey
Returns the key when the tick data is for aCategoryAxis3D, andnullotherwise.- Returns:
- The key (possibly
null).
-
getKeyLabel
Returns the key label.- Returns:
- The key label (possibly
null). - Since:
- 1.2
-
getDataValue
Returns the data value when the tick data is for aNumberAxis3D, andDouble.NaNotherwise.- Returns:
- The data value.
-
getVertexIndex
Returns the vertex index that is the anchor point for the tick mark.- Returns:
- The vertex index.
-
setVertexIndex
Sets the vertex index. The vertex is a point in 3D space that is the anchor point for the tick mark, after this is projected to 2D space we have a reference point for the tick mark.- Parameters:
index- the index.
-
getAnchorPt
Returns the anchor point.- Returns:
- The anchor point.
-
setAnchorPt
Sets the anchor point. This is the projected point in 2D space of the vertex we track in 3D space.- Parameters:
anchorPt- the anchor point.
-