public class CategoryItemEntity extends ChartEntity implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
CategoryItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText,
CategoryDataset dataset,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Creates a new entity instance for an item in the specified dataset.
|
CategoryItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText,
CategoryDataset dataset,
int series,
java.lang.Object category,
int categoryIndex)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tests the entity for equality with an arbitrary object.
|
java.lang.Object |
getCategory()
Deprecated.
The return type for this method should be
Comparable , so it has been deprecated as of
version 1.0.6 and replaced by getColumnKey() . |
int |
getCategoryIndex()
Deprecated.
As of 1.0.6, you can derive this information from the
getColumnKey() method. |
java.lang.Comparable |
getColumnKey()
Returns the column key.
|
CategoryDataset |
getDataset()
Returns the dataset this entity refers to.
|
java.lang.Comparable |
getRowKey()
Returns the row key.
|
int |
getSeries()
Deprecated.
As of 1.0.6, you can derive this information from the
getRowKey() method. |
void |
setCategory(java.lang.Object category)
Deprecated.
As of version 1.0.6, use
setColumnKey(Comparable) . |
void |
setCategoryIndex(int index)
Deprecated.
As of 1.0.6, use
setColumnKey(Comparable) to
designate the category. |
void |
setColumnKey(java.lang.Comparable columnKey)
Sets the column key.
|
void |
setDataset(CategoryDataset dataset)
Sets the dataset this entity refers to.
|
void |
setRowKey(java.lang.Comparable rowKey)
Sets the row key.
|
void |
setSeries(int series)
Deprecated.
As of 1.0.6, you should use
setRowKey(Comparable)
to designate the series. |
java.lang.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(java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText, CategoryDataset dataset, int series, java.lang.Object category, int categoryIndex)
CategoryItemEntity(Shape, String,
String, CategoryDataset, Comparable, Comparable)
.area
- the area (null
not permitted).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.public CategoryItemEntity(java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText, CategoryDataset dataset, java.lang.Comparable rowKey, java.lang.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 java.lang.Comparable getRowKey()
null
).setRowKey(Comparable)
public void setRowKey(java.lang.Comparable rowKey)
rowKey
- the row key (null
not permitted).getRowKey()
public java.lang.Comparable getColumnKey()
null
).setColumnKey(Comparable)
public void setColumnKey(java.lang.Comparable columnKey)
columnKey
- the column key (null
not permitted).getColumnKey()
public int getSeries()
getRowKey()
method.setSeries(int)
public void setSeries(int series)
setRowKey(Comparable)
to designate the series.series
- the series index (zero-based).getSeries()
public java.lang.Object getCategory()
Comparable
, so it has been deprecated as of
version 1.0.6 and replaced by getColumnKey()
.null
).setCategory(Object)
public void setCategory(java.lang.Object category)
setColumnKey(Comparable)
.category
- the category (null
permitted).getCategory()
public int getCategoryIndex()
getColumnKey()
method.setCategoryIndex(int)
public void setCategoryIndex(int index)
setColumnKey(Comparable)
to
designate the category.index
- the category index.getCategoryIndex()
public java.lang.String toString()
toString
in class ChartEntity
null
).public boolean equals(java.lang.Object obj)
equals
in class ChartEntity
obj
- the object (null
permitted).