Module org.jfree.chart3d
Package org.jfree.chart3d.data.xyz
Class XYZItemKey<S extends Comparable<S>>
java.lang.Object
org.jfree.chart3d.data.xyz.XYZItemKey<S>
- Type Parameters:
S- The series key type.
- All Implemented Interfaces:
Serializable,Comparable<XYZItemKey<S>>,ItemKey
public class XYZItemKey<S extends Comparable<S>>
extends Object
implements ItemKey, Comparable<XYZItemKey<S>>, Serializable
An object that references one data item in an
XYZDataset. This is
used internally to track the data item that a 3D object is related to, if
any (and later that link is used for chart interaction). Instances of
this class are immutable.- Since:
- 1.3
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(XYZItemKey<S> key) booleanTests this instance for equality with an arbitrary object.intReturns the item index.Returns the series key.inthashCode()Returns a JSON formatted string representing the key.toString()
-
Constructor Details
-
XYZItemKey
Creates a new instance.- Parameters:
seriesKey- the series key (nullnot permitted).itemIndex- the item index.
-
-
Method Details
-
getSeriesKey
Returns the series key.- Returns:
- The series key (never
null).
-
getItemIndex
Returns the item index.- Returns:
- The item index.
-
equals
Tests this instance for equality with an arbitrary object. -
hashCode
-
toJSONString
Description copied from interface:ItemKeyReturns a JSON formatted string representing the key.- Specified by:
toJSONStringin interfaceItemKey- Returns:
- A JSON formatted string.
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<S extends Comparable<S>>
-