org.jfree.chart.event
Class ChartProgressEvent
java.util.EventObject
org.jfree.chart.event.ChartProgressEvent
extends java.util.EventObject
An event that contains information about the drawing progress of a chart.
DRAWING_FINISHED
public static final int DRAWING_FINISHED
Indicates drawing has finished.
DRAWING_STARTED
public static final int DRAWING_STARTED
Indicates drawing has started.
ChartProgressEvent
public ChartProgressEvent(Object source,
JFreeChart chart,
int type,
int percent)
Creates a new chart change event.
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.
getChart
public JFreeChart getChart()
Returns the chart that generated the change event.
- The chart that generated the change event.
getPercent
public int getPercent()
Returns the percentage complete.
getType
public int getType()
Returns the event type.
setChart
public void setChart(JFreeChart chart)
Sets the chart that generated the change event.
chart
- the chart that generated the event.
setPercent
public void setPercent(int percent)
Sets the percentage complete.
percent
- the percentage.
setType
public void setType(int type)
Sets the event type.