Class 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
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      LegendClickEvent​(java.lang.Object source, org.jfree.data.general.Dataset dataset, java.lang.Comparable key)
      Creates a new legend click event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Constructor Detail

      • 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.
    • Method Detail

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