com.ijchart.xychart.event
Class ChartProgressEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.ijchart.xychart.event.ChartProgressEvent
All Implemented Interfaces:
java.io.Serializable

public class ChartProgressEvent
extends java.util.EventObject
implements java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

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

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
static int PROGRESS_CALCULATE_FINISHED
           Indicates calculate shapes finished.
static int PROGRESS_CALCULATE_STARTED
           Indicates calculate shapes started.
static int PROGRESS_DRAWING_LEGEND_SHAPES_STARTED
           Indicates drawing legend shapes started.
static int PROGRESS_DRAWING_PLOT_SHAPES_STARTED
           Indicates drawing plot shapes started.
static int PROGRESS_DRAWING_SHAPES_FINISHED
           Indicates drawing shapes finished.
static int PROGRESS_DRAWING_SHAPES_STARTED
           Indicates drawing shapes started.
static int PROGRESS_DRAWING_TITLE_SHAPES_STARTED
           Indicates drawing title shapes started.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChartProgressEvent(IJChart chart, java.lang.Object source, int eventType)
           Creates a new chart change event.
 
Method Summary
 IJChart getChart()
           Returns the chart that generated the change event.
 int getType()
           Returns the event type.
 void setChart(IJChart chart)
           Sets the chart that generated the change event.
 void setType(int eventType)
           Sets the event type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROGRESS_CALCULATE_STARTED

public static final int PROGRESS_CALCULATE_STARTED
Indicates calculate shapes started.

See Also:
Constant Field Values

PROGRESS_CALCULATE_FINISHED

public static final int PROGRESS_CALCULATE_FINISHED
Indicates calculate shapes finished.

See Also:
Constant Field Values

PROGRESS_DRAWING_SHAPES_STARTED

public static final int PROGRESS_DRAWING_SHAPES_STARTED
Indicates drawing shapes started.

See Also:
Constant Field Values

PROGRESS_DRAWING_TITLE_SHAPES_STARTED

public static final int PROGRESS_DRAWING_TITLE_SHAPES_STARTED
Indicates drawing title shapes started.

See Also:
Constant Field Values

PROGRESS_DRAWING_LEGEND_SHAPES_STARTED

public static final int PROGRESS_DRAWING_LEGEND_SHAPES_STARTED
Indicates drawing legend shapes started.

See Also:
Constant Field Values

PROGRESS_DRAWING_PLOT_SHAPES_STARTED

public static final int PROGRESS_DRAWING_PLOT_SHAPES_STARTED
Indicates drawing plot shapes started.

See Also:
Constant Field Values

PROGRESS_DRAWING_SHAPES_FINISHED

public static final int PROGRESS_DRAWING_SHAPES_FINISHED
Indicates drawing shapes finished.

See Also:
Constant Field Values
Constructor Detail

ChartProgressEvent

public ChartProgressEvent(IJChart chart,
                          java.lang.Object source,
                          int eventType)
Creates a new chart change event.

Parameters:
chart - IJChart The chart that generated the event.
source - Object The source of the event (could be the chart, a title, an axis etc.).
eventType - int The type of event.
Method Detail

getChart

public IJChart getChart()
Returns the chart that generated the change event.

Returns:
IJChart The chart that generated the change event.

setChart

public void setChart(IJChart chart)
Sets the chart that generated the change event.

Parameters:
chart - IJChart The chart that generated the event.

getType

public int getType()
Returns the event type.

Returns:
int The event type.

setType

public void setType(int eventType)
Sets the event type.

Parameters:
eventType - int The event type.