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.
|
CategoryItemEntity(Shape area,
String toolTipText,
String urlText,
CategoryDataset dataset,
int series,
Object category,
int categoryIndex)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests the entity for equality with an arbitrary object.
|
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. |
Comparable |
getColumnKey()
Returns the column key.
|
CategoryDataset |
getDataset()
Returns the dataset this entity refers to.
|
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(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(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)
Deprecated.
As of 1.0.6, you should use
setRowKey(Comparable)
to designate the series. |
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, int series, 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(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 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 Object getCategory()
Comparable
, so it has been deprecated as of
version 1.0.6 and replaced by getColumnKey()
.null
).setCategory(Object)
public void setCategory(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 String toString()
toString
in class ChartEntity
null
).public boolean equals(Object obj)
equals
in class ChartEntity
obj
- the object (null
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics