org.jfree.beans.events
Class LegendClickEvent
java.lang.Object
java.util.EventObject
org.jfree.beans.events.LegendClickEvent
- All Implemented Interfaces:
- java.io.Serializable
public class LegendClickEvent
- extends java.util.EventObject
An event object that carries information about a mouse click on a series
in a legend.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
LegendClickEvent(java.lang.Object source,
org.jfree.data.general.Dataset dataset,
java.lang.Comparable key)
Creates a new legend click event. |
Method Summary |
org.jfree.data.general.Dataset |
getDataset()
Returns the dataset. |
java.lang.Comparable |
getSeriesKey()
Returns the series key. |
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 |
LegendClickEvent
public LegendClickEvent(java.lang.Object source,
org.jfree.data.general.Dataset dataset,
java.lang.Comparable key)
- Creates a new legend click event.
- Parameters:
source
- the event source.dataset
- the dataset.key
- the series key.
getDataset
public org.jfree.data.general.Dataset getDataset()
- Returns the dataset.
- Returns:
- The dataset.
getSeriesKey
public java.lang.Comparable getSeriesKey()
- Returns the series key.
- Returns:
- The series key.
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.