org.jfree.beans.events
Class SectionClickEvent

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SectionClickEvent(java.lang.Object source, java.lang.Comparable key)
          Creates a new section click event.
 
Method Summary
 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).
 
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

SectionClickEvent

public SectionClickEvent(java.lang.Object source,
                         java.lang.Comparable key)
Creates a new section click event.

Parameters:
source - the event source (typically the JPieChart).
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 class java.util.EventObject
Returns:
A string.