Package org.jfree.beans.events
Class SectionClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.beans.events.SectionClickEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class SectionClickEvent extends java.util.EventObject
An event object that carries information about a mouse click on a section in aJPieChart
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SectionClickEvent(java.lang.Object source, java.lang.Comparable key)
Creates a new section click event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Comparable
getSectionKey()
Returns the section key.java.lang.String
toString()
Returns a string that represents the state of this instance (suitable for debugging purposes).
-
-
-
Constructor Detail
-
SectionClickEvent
public SectionClickEvent(java.lang.Object source, java.lang.Comparable key)
Creates a new section click event.- Parameters:
source
- the event source (typically theJPieChart
).key
- the section key.
-
-
Method Detail
-
getSectionKey
public java.lang.Comparable getSectionKey()
Returns the section key.- Returns:
- The section key.
-
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.
-
-