org.jfree.chart.entity
Class XYItemEntity
- Cloneable, PublicCloneable, Serializable
A chart entity that represents one item within an
XYPlot.
XYItemEntity(Shape area, XYDataset dataset, int series, int item, String toolTipText, String urlText)- Creates a new entity.
|
boolean | equals(Object obj)- Tests the entity for equality with an arbitrary object.
|
XYDataset | getDataset()- Returns the dataset this entity refers to.
|
int | getItem()- Returns the item index.
|
int | getSeriesIndex()- Returns the series index.
|
void | setDataset(XYDataset dataset)- Sets the dataset this entity refers to.
|
void | setItem(int item)- Sets the item index.
|
void | setSeriesIndex(int series)- Sets the series index.
|
String | toString()- Returns a string representation of this instance, useful for debugging
purposes.
|
clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText, toString |
XYItemEntity
public XYItemEntity(Shape area,
XYDataset dataset,
int series,
int item,
String toolTipText,
String urlText) Creates a new entity.
area - the area.dataset - the dataset.series - the series (zero-based index).item - the item (zero-based index).toolTipText - the tool tip text.urlText - the URL text for HTML image maps.
equals
public boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
- equals in interface ChartEntity
obj - the object (null permitted).
getItem
public int getItem()
Returns the item index.
setItem
public void setItem(int item)
Sets the item index.
item - the item index (zero-based).
setSeriesIndex
public void setSeriesIndex(int series)
Sets the series index.
series - the series index (zero-based).
toString
public String toString()
Returns a string representation of this instance, useful for debugging
purposes.
- toString in interface ChartEntity