public class

ChartProgressEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ org.jfree.chart.event.ChartProgressEvent

Class Overview

An event that contains information about the drawing progress of a chart.

Summary

Constants
int DRAWING_FINISHED Indicates drawing has finished.
int DRAWING_STARTED Indicates drawing has started.
[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ChartProgressEvent(Object source, JFreeChart chart, int type, int percent)
Creates a new chart change event.
Public Methods
JFreeChart getChart()
Returns the chart that generated the change event.
int getPercent()
Returns the percentage complete.
int getType()
Returns the event type.
void setChart(JFreeChart chart)
Sets the chart that generated the change event.
void setPercent(int percent)
Sets the percentage complete.
void setType(int type)
Sets the event type.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Constants

public static final int DRAWING_FINISHED

Indicates drawing has finished.

Constant Value: 2 (0x00000002)

public static final int DRAWING_STARTED

Indicates drawing has started.

Constant Value: 1 (0x00000001)

Public Constructors

public ChartProgressEvent (Object source, JFreeChart chart, int 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.
percent the percentage of completion.

Public Methods

public JFreeChart getChart ()

Returns the chart that generated the change event.

Returns
  • The chart that generated the change event.

public int getPercent ()

Returns the percentage complete.

Returns
  • The percentage complete.

public int getType ()

Returns the event type.

Returns
  • The event type.

public void setChart (JFreeChart chart)

Sets the chart that generated the change event.

Parameters
chart the chart that generated the event.

public void setPercent (int percent)

Sets the percentage complete.

Parameters
percent the percentage.

public void setType (int type)

Sets the event type.

Parameters
type the event type.