Package org.jfree.beans.events
Class XYItemClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.beans.events.XYItemClickEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class XYItemClickEvent extends java.util.EventObject
An event object that carries information about a mouse click on an item in anAbstractXYChart
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XYItemClickEvent(java.lang.Object source, org.jfree.data.xy.XYDataset dataset, int seriesIndex, int itemIndex)
Creates a new XY item click event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jfree.data.xy.XYDataset
getDataset()
Returns the dataset.int
getItemIndex()
Returns the item index.int
getSeriesIndex()
Returns the series index.java.lang.String
toString()
Returns a string that represents the state of this instance (suitable for debugging purposes).
-
-
-
Constructor Detail
-
XYItemClickEvent
public XYItemClickEvent(java.lang.Object source, org.jfree.data.xy.XYDataset dataset, int seriesIndex, int itemIndex)
Creates a new XY item click event.- Parameters:
source
- the event source (typically the chart).dataset
- the dataset.seriesIndex
- the row key.itemIndex
- the column key.
-
-
Method Detail
-
getDataset
public org.jfree.data.xy.XYDataset getDataset()
Returns the dataset.- Returns:
- The dataset.
-
getSeriesIndex
public int getSeriesIndex()
Returns the series index.- Returns:
- The series index.
-
getItemIndex
public int getItemIndex()
Returns the item index.- Returns:
- The item index.
-
toString
public java.lang.String toString()
Returns a string that represents the state of this instance (suitable for debugging purposes).- Overrides:
toString
in classjava.util.EventObject
- Returns:
- A string.
-
-