com.jrefinery.chart.entity
Class XYItemEntity
java.lang.Object
|
+--com.jrefinery.chart.entity.ChartEntity
|
+--com.jrefinery.chart.entity.XYItemEntity
- public class XYItemEntity
- extends ChartEntity
A chart entity that represents one item within an XY plot.
- Author:
- DG
Constructor Summary |
XYItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
int series,
int item)
Creates a new entity. |
XYItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText,
int series,
int item)
Creates a new entity. |
Method Summary |
int |
getItem()
Returns the item index. |
int |
getSeries()
Returns the series index. |
void |
setItem(int item)
Sets the item index. |
void |
setSeries(int series)
Sets the series index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XYItemEntity
public XYItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
int series,
int item)
- Creates a new entity.
- Parameters:
area
- the area.toolTipText
- the tool tip text.series
- the series (zero-based index).item
- the item (zero-based index).
XYItemEntity
public XYItemEntity(java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText,
int series,
int item)
- Creates a new entity.
- Parameters:
area
- the area.toolTipText
- the tool tip text.urlText
- the URL text for HTML image maps.series
- the series (zero-based index).item
- the item (zero-based index).
getSeries
public int getSeries()
- Returns the series index.
- Returns:
- the series index.
setSeries
public void setSeries(int series)
- Sets the series index.
- Parameters:
series
- the series index (zero-based).
getItem
public int getItem()
- Returns the item index.
- Returns:
- the item index.
setItem
public void setItem(int item)
- Sets the item index.
- Parameters:
item
- the item index (zero-based).