- java.lang.Object
-
- java.util.EventObject
-
- org.jfree.chart.event.ChartProgressEvent
-
- All Implemented Interfaces:
Serializable
public class ChartProgressEvent extends EventObject
An event that contains information about the drawing progress of a chart.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ChartProgressEvent(Object source, JFreeChart chart, ChartProgressEventType type, int percent)Creates a new chart change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JFreeChartgetChart()Returns the chart that generated the change event.intgetPercent()Returns the percentage complete.ChartProgressEventTypegetType()Returns the event type.voidsetChart(JFreeChart chart)Sets the chart that generated the change event.voidsetPercent(int percent)Sets the percentage complete.voidsetType(ChartProgressEventType type)Sets the event type.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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 (nullnot 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.
-
getType
public ChartProgressEventType getType()
Returns the event type.- Returns:
- The event type (never
null).
-
setType
public void setType(ChartProgressEventType type)
Sets the event type.- Parameters:
type- the event type (nullnot permitted).
-
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.
-
-