Class ChartDataEvent

  • Direct Known Subclasses:
    DialChartDataEvent

    public class ChartDataEvent
    extends java.lang.Object
    Defines an event that encapsulates changes to a chart's data model.
    Author:
    henrichen
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ADDED
      Identifies the addition of one or more contiguous items to the list.
      static int CHANGED
      Identifies one or more changes in the lists contents.
      static int REMOVED
      Identifies the removal of one or more contiguous items from the list.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChartDataEvent​(ChartModel model, int type, java.lang.Comparable series, java.lang.Comparable category, int seriesIndex, int categoryIndex, java.lang.Object data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Comparable getCategory()
      Returns the category of the chart data model.
      int getCategoryIndex()
      Returns the category index, if any.
      java.lang.Object getData()
      Returns customer data.
      ChartModel getModel()
      Returns the chart model that fires this event.
      java.lang.Comparable getSeries()
      Returns the series of the chart data model.
      int getSeriesIndex()
      Returns the series index, if any.
      int getType()
      Returns the event type: CHANGED, ADDED, REMOVED.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CHANGED

        public static final int CHANGED
        Identifies one or more changes in the lists contents.
        See Also:
        Constant Field Values
      • ADDED

        public static final int ADDED
        Identifies the addition of one or more contiguous items to the list.
        See Also:
        Constant Field Values
      • REMOVED

        public static final int REMOVED
        Identifies the removal of one or more contiguous items from the list.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChartDataEvent

        public ChartDataEvent​(ChartModel model,
                              int type,
                              java.lang.Comparable series,
                              java.lang.Comparable category,
                              int seriesIndex,
                              int categoryIndex,
                              java.lang.Object data)
    • Method Detail

      • getSeriesIndex

        public int getSeriesIndex()
        Returns the series index, if any.
        Since:
        7.0.1
      • getCategoryIndex

        public int getCategoryIndex()
        Returns the category index, if any.
        Since:
        7.0.1
      • getCategory

        public java.lang.Comparable getCategory()
        Returns the category of the chart data model.
        Since:
        7.0.1
      • getModel

        public ChartModel getModel()
        Returns the chart model that fires this event.
      • getType

        public int getType()
        Returns the event type: CHANGED, ADDED, REMOVED.
      • getSeries

        public java.lang.Comparable getSeries()
        Returns the series of the chart data model.
      • getData

        public java.lang.Object getData()
        Returns customer data. Depends on the implementation.