org.jfree.chart.entity
public class CategoryItemEntity extends ChartEntity implements Cloneable, Serializable
Constructor Summary | |
---|---|
CategoryItemEntity(Shape area, String toolTipText, String urlText, CategoryDataset dataset, int series, Object category, int categoryIndex)
Creates a new category item entity.
| |
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.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests the entity for equality with an arbitrary object.
|
Object | getCategory()
Returns the category.
|
int | getCategoryIndex()
Returns the category index.
|
Comparable | getColumnKey()
Returns the column key.
|
CategoryDataset | getDataset()
Returns the dataset this entity refers to. |
Comparable | getRowKey()
Returns the row key.
|
int | getSeries()
Returns the series index.
|
void | setCategory(Object category)
Sets the category.
|
void | setCategoryIndex(int index)
Sets the category index.
|
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.
|
void | setSeries(int series)
Sets the series index.
|
String | toString()
Returns a string representing this object (useful for debugging
purposes).
|
Deprecated: As of 1.0.6, use CategoryItemEntity.
Creates a new category item entity.Parameters: 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.
Parameters: 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).
Since: 1.0.6
Parameters: obj the object (null
permitted).
Returns: A boolean.
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.
Returns: The category (possibly null
).
Deprecated: As of 1.0.6, you can derive this information from the getColumnKey method.
Returns the category index.Returns: The index.
Returns: The dataset (never null
).
See Also: setDataset
Deprecated: As of 1.0.6, you can derive this information from the getRowKey method.
Returns the series index.Returns: The series index.
Deprecated: As of version 1.0.6, use setColumnKey.
Sets the category.Parameters: category the category (null
permitted).
Deprecated: As of 1.0.6, use setColumnKey to designate the category.
Sets the category index.Parameters: index the category index.
Parameters: columnKey the column key (null
not permitted).
Since: 1.0.6
See Also: getColumnKey
Parameters: dataset the dataset (null
not permitted).
See Also: getDataset
Parameters: rowKey the row key (null
not permitted).
Since: 1.0.6
See Also: getRowKey
Deprecated: As of 1.0.6, you should use setRowKey to designate the series.
Sets the series index.Parameters: series the series index (zero-based).
Returns: A string (never null
).