Class XYItemEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.XYItemEntity
- All Implemented Interfaces:
Serializable, Cloneable, org.jfree.util.PublicCloneable
A chart entity that represents one item within an
XYPlot.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXYItemEntity(Shape area, XYDataset dataset, int series, int item, String toolTipText, String urlText) Creates a new entity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests the entity for equality with an arbitrary object.Returns the dataset this entity refers to.intgetItem()Returns the item index.intReturns the series index.voidsetDataset(XYDataset dataset) Sets the dataset this entity refers to.voidsetItem(int item) Sets the item index.voidsetSeriesIndex(int series) Sets the series index.toString()Returns a string representation of this instance, useful for debugging purposes.Methods inherited from class ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, 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.
-
-
Method Details
-
getDataset
-
setDataset
Sets the dataset this entity refers to.- Parameters:
dataset- the dataset.
-
getSeriesIndex
-
setSeriesIndex
Sets the series index.- Parameters:
series- the series index (zero-based).
-
getItem
-
setItem
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
toString
Returns a string representation of this instance, useful for debugging purposes.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-