org.jfree.chart.entity
Class CategoryItemEntity
- Cloneable, PublicCloneable, Serializable
implements Cloneable, Serializable
A chart entity that represents one item within a category plot.
CategoryItemEntity(Shape area, String toolTipText, String urlText, CategoryDataset dataset, int series, Object category, int categoryIndex)- Creates a new category item entity.
|
clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText, toString |
CategoryItemEntity
public CategoryItemEntity(Shape area,
String toolTipText,
String urlText,
CategoryDataset dataset,
int series,
Object category,
int categoryIndex) Creates a new category item entity.
area - the area.toolTipText - the tool tip text.urlText - the URL text for HTML image maps.dataset - the dataset.series - the series (zero-based index).category - the category.categoryIndex - the category index.
equals
public boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
- equals in interface ChartEntity
obj - the object (null permitted).
getCategory
public Object getCategory()
Returns the category.
- The category (possibly
null).
getSeries
public int getSeries()
Returns the series index.
setCategory
public void setCategory(Object category)
Sets the category.
category - the category (null permitted).
setCategoryIndex
public void setCategoryIndex(int index)
Sets the category index.
index - the category index.
setDataset
public void setDataset(CategoryDataset dataset)
Sets the datset this entity refers to.
dataset - the dataset (null permited).
setSeries
public void setSeries(int series)
Sets the series index.
series - the series index (zero-based).
toString
public String toString()
Returns a string representing this object (useful for debugging
purposes).
- toString in interface ChartEntity