- java.lang.Object
-
- org.jfree.data.xy.XYItemKey<S>
-
- Type Parameters:
S- the series key type.
- All Implemented Interfaces:
Serializable,Comparable<XYItemKey<S>>,ItemKey
public class XYItemKey<S extends Comparable<S>> extends Object implements ItemKey, Comparable<XYItemKey<S>>, Serializable
An object that references one data item in anXYZDataset. 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.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(XYItemKey<S> key)booleanequals(Object obj)Tests this instance for equality with an arbitrary object.intgetItemIndex()Returns the item index.SgetSeriesKey()Returns the series key.inthashCode()StringtoJSONString()Returns a JSON formatted string representing the key.StringtoString()
-
-
-
Method Detail
-
getSeriesKey
public S getSeriesKey()
Returns the series key.- Returns:
- The series key (never
null).
-
getItemIndex
public int getItemIndex()
Returns the item index.- Returns:
- The item index.
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
-
toJSONString
public String toJSONString()
Description copied from interface:ItemKeyReturns a JSON formatted string representing the key.- Specified by:
toJSONStringin interfaceItemKey- Returns:
- A JSON formatted string.
-
compareTo
public int compareTo(XYItemKey<S> key)
- Specified by:
compareToin interfaceComparable<S extends Comparable<S>>
-
-