S - the series key type.public class XYItemKey<S extends Comparable<S>> extends Object implements ItemKey, Comparable<XYItemKey<S>>, Serializable
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.| Constructor and Description |
|---|
XYItemKey(S seriesKey,
int itemIndex)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(XYItemKey<S> key) |
boolean |
equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
getItemIndex()
Returns the item index.
|
S |
getSeriesKey()
Returns the series key.
|
int |
hashCode() |
String |
toJSONString()
Returns a JSON formatted string representing the key.
|
String |
toString() |
public XYItemKey(S seriesKey, int itemIndex)
seriesKey - the series key.itemIndex - the item index.public S getSeriesKey()
null).public int getItemIndex()
public boolean equals(Object obj)
public String toJSONString()
ItemKeytoJSONString in interface ItemKeypublic int compareTo(XYItemKey<S> key)
compareTo in interface Comparable<XYItemKey<S extends Comparable<S>>>Copyright © 2001–2017 JFree.org. All rights reserved.