| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jfree.chart.entity.ChartEntityorg.jfree.chart.entity.CategoryItemEntityConstructor Summary | |
| |
| |
Method Summary | |
boolean |
|
Object |
|
int |
|
Comparable |
|
CategoryDataset |
|
Comparable |
|
int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.jfree.chart.entity.ChartEntity | |
clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText, toString | |
public 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.
- Parameters:
area- the 'hotspot' area (nullnot permitted).toolTipText- the tool tip text.urlText- the URL text.dataset- the dataset (nullnot permitted).rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
- Since:
- 1.0.6
public CategoryItemEntity(Shape area, String toolTipText, String urlText, CategoryDataset dataset, int series, Object category, int categoryIndex)
Deprecated. As of 1.0.6, use
CategoryItemEntity(Shape,String,String,CategoryDataset,Comparable,Comparable).Creates a new category item entity.
- Parameters:
area- the area (nullnot 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 boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
- Overrides:
- equals in interface ChartEntity
- Parameters:
obj- the object (nullpermitted).
- Returns:
- A boolean.
public 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 bygetColumnKey().Returns the category.
- Returns:
- The category (possibly
null).
- See Also:
setCategory(Object)
public int getCategoryIndex()
Deprecated. As of 1.0.6, you can derive this information from the
getColumnKey()method.Returns the category index.
- Returns:
- The index.
- See Also:
setCategoryIndex(int)
public Comparable getColumnKey()
Returns the column key.
- Returns:
- The column key (never
null).
- Since:
- 1.0.6
- See Also:
setColumnKey(Comparable)
public CategoryDataset getDataset()
Returns the dataset this entity refers to. This can be used to differentiate between items in a chart that displays more than one dataset.
- Returns:
- The dataset (never
null).
- See Also:
setDataset(CategoryDataset)
public Comparable getRowKey()
Returns the row key.
- Returns:
- The row key (never
null).
- Since:
- 1.0.6
- See Also:
setRowKey(Comparable)
public int getSeries()
Deprecated. As of 1.0.6, you can derive this information from the
getRowKey()method.Returns the series index.
- Returns:
- The series index.
- See Also:
setSeries(int)
public void setCategory(Object category)
Deprecated. As of version 1.0.6, use
setColumnKey(Comparable).Sets the category.
- Parameters:
category- the category (nullpermitted).
- See Also:
getCategory()
public void setCategoryIndex(int index)
Deprecated. As of 1.0.6, use
setColumnKey(Comparable)to designate the category.Sets the category index.
- Parameters:
index- the category index.
- See Also:
getCategoryIndex()
public void setColumnKey(Comparable columnKey)
Sets the column key.
- Parameters:
columnKey- the column key (nullnot permitted).
- Since:
- 1.0.6
- See Also:
getColumnKey()
public void setDataset(CategoryDataset dataset)
Sets the dataset this entity refers to.
- Parameters:
dataset- the dataset (nullnot permitted).
- See Also:
getDataset()
public void setRowKey(Comparable rowKey)
Sets the row key.
- Parameters:
rowKey- the row key (nullnot permitted).
- Since:
- 1.0.6
- See Also:
getRowKey()
public void setSeries(int series)
Deprecated. As of 1.0.6, you should use
setRowKey(Comparable)to designate the series.Sets the series index.
- Parameters:
series- the series index (zero-based).
- See Also:
getSeries()
public String toString()
Returns a string representing this object (useful for debugging purposes).
- Overrides:
- toString in interface ChartEntity
- Returns:
- A string (never
null).