Class ChartProgressEvent

    • Constructor Detail

      • ChartProgressEvent

        public ChartProgressEvent​(Object source,
                                  JFreeChart chart,
                                  ChartProgressEventType type,
                                  int percent)
        Creates a new chart change event.
        Parameters:
        source - the source of the event (could be the chart, a title, an axis etc.)
        chart - the chart that generated the event.
        type - the type of event (null not permitted).
        percent - the percentage of completion.
    • Method Detail

      • getChart

        public JFreeChart getChart()
        Returns the chart that generated the change event.
        Returns:
        The chart that generated the change event.
      • setChart

        public void setChart​(JFreeChart chart)
        Sets the chart that generated the change event.
        Parameters:
        chart - the chart that generated the event.
      • getPercent

        public int getPercent()
        Returns the percentage complete.
        Returns:
        The percentage complete.
      • setPercent

        public void setPercent​(int percent)
        Sets the percentage complete.
        Parameters:
        percent - the percentage.