org.jfree.beans.events
Class XYItemClickEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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 an AbstractXYChart.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
XYItemClickEvent(java.lang.Object source, org.jfree.data.xy.XYDataset dataset, int seriesIndex, int itemIndex)
          Creates a new XY item click event.
 
Method Summary
 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).
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class java.util.EventObject
Returns:
A string.