public class CategoryItemEntity extends ChartEntity implements Cloneable, Serializable
Constructor and Description |
---|
CategoryItemEntity(Shape area,
String toolTipText,
String urlText,
CategoryDataset dataset,
Comparable rowKey,
Comparable columnKey)
Creates a new entity instance for an item in the specified dataset.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests the entity for equality with an arbitrary object.
|
Comparable |
getColumnKey()
Returns the column key.
|
CategoryDataset |
getDataset()
Returns the dataset this entity refers to.
|
Comparable |
getRowKey()
Returns the row key.
|
void |
setColumnKey(Comparable columnKey)
Sets the column key.
|
void |
setDataset(CategoryDataset dataset)
Sets the dataset this entity refers to.
|
void |
setRowKey(Comparable rowKey)
Sets the row key.
|
String |
toString()
Returns a string representing this object (useful for debugging
purposes).
|
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText
public CategoryItemEntity(Shape area, String toolTipText, String urlText, CategoryDataset dataset, Comparable rowKey, Comparable columnKey)
area
- the 'hotspot' area (null
not permitted).toolTipText
- the tool tip text.urlText
- the URL text.dataset
- the dataset (null
not permitted).rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).public CategoryDataset getDataset()
null
).setDataset(CategoryDataset)
public void setDataset(CategoryDataset dataset)
dataset
- the dataset (null
not permitted).getDataset()
public Comparable getRowKey()
null
).setRowKey(Comparable)
public void setRowKey(Comparable rowKey)
rowKey
- the row key (null
not permitted).getRowKey()
public Comparable getColumnKey()
null
).setColumnKey(Comparable)
public void setColumnKey(Comparable columnKey)
columnKey
- the column key (null
not permitted).getColumnKey()
public String toString()
toString
in class ChartEntity
null
).public boolean equals(Object obj)
equals
in class ChartEntity
obj
- the object (null
permitted).Copyright © 2001–2017 JFree.org. All rights reserved.