Package org.jfree.chart.entity
Class XYItemEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.XYItemEntity
- All Implemented Interfaces:
Serializable
,Cloneable
public class XYItemEntity extends ChartEntity
A chart entity that represents one item within an
XYPlot
.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description XYItemEntity(Shape area, String toolTipText, int series, int item)
Deprecated.Use alternative constructor.XYItemEntity(Shape area, String toolTipText, String urlText, int series, int item)
Deprecated.Use alternative constructor.XYItemEntity(Shape area, XYDataset dataset, int series, int item, String toolTipText, String urlText)
Creates a new entity. -
Method Summary
Modifier and Type Method Description 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
getSeries()
Deprecated.Renamed getSeriesIndex().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
setSeries(int series)
Deprecated.Renamed setSeriesIndex().void
setSeriesIndex(int series)
Sets the series index.Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
Constructor Details
-
XYItemEntity
public XYItemEntity(Shape area, XYDataset dataset, int series, int item, String toolTipText, String urlText)Creates a new entity.- Parameters:
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.
-
XYItemEntity
Deprecated.Use alternative constructor.Creates a new entity.- Parameters:
area
- the area.toolTipText
- the tool tip text.series
- the series (zero-based index).item
- the item (zero-based index).
-
XYItemEntity
Deprecated.Use alternative constructor.Creates a new entity.- Parameters:
area
- the area.toolTipText
- the tool tip text.urlText
- the URL text for HTML image maps.series
- the series (zero-based index).item
- the item (zero-based index).
-
-
Method Details
-
getDataset
Returns the dataset this entity refers to.- Returns:
- The dataset.
-
setDataset
Sets the dataset this entity refers to.- Parameters:
dataset
- the dataset.
-
getSeriesIndex
public int getSeriesIndex()Returns the series index.- Returns:
- The series index.
-
setSeriesIndex
public void setSeriesIndex(int series)Sets the series index.- Parameters:
series
- the series index (zero-based).
-
getItem
public int getItem()Returns the item index.- Returns:
- The item index.
-
setItem
public void setItem(int item)Sets the item index.- Parameters:
item
- the item index (zero-based).
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equals
in classChartEntity
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
getSeries
public int getSeries()Deprecated.Renamed getSeriesIndex().Returns the series index.- Returns:
- The series index.
-
setSeries
public void setSeries(int series)Deprecated.Renamed setSeriesIndex().Sets the series index.- Parameters:
series
- the series index (zero-based).
-