Class 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

      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).
      • 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.