com.ijchart.xychart.event
Class PlotChangeEvent

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

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

Title: IJChart

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

A change event that encapsulates information about a change to an plot.

Copyright: Copyright (c) 2013

Company:

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PlotChangeEvent(AbstractPlot plot)
           Creates a new instance and the event type is ChartChangeEventType.GENERAL.
PlotChangeEvent(AbstractPlot plot, ChartChangeEventType type)
           Creates a new instance.
 
Method Summary
 AbstractPlot getPlot()
           Returns the plot that generated the event.
 ChartChangeEventType getType()
           Returns the event type.
 void setType(ChartChangeEventType type)
           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
 

Constructor Detail

PlotChangeEvent

public PlotChangeEvent(AbstractPlot plot)
Creates a new instance and the event type is ChartChangeEventType.GENERAL.

Parameters:
plot - AbstractPlot The plot that generated the event.

PlotChangeEvent

public PlotChangeEvent(AbstractPlot plot,
                       ChartChangeEventType type)
Creates a new instance.

Parameters:
plot - The plot that generated the event.
Method Detail

getPlot

public AbstractPlot getPlot()
Returns the plot that generated the event.

Returns:
The plot that generated the event.

getType

public ChartChangeEventType getType()
Returns the event type.

Returns:
The event type(never null).

setType

public void setType(ChartChangeEventType type)
Sets the event type.

Parameters:
type - The event type (null not permitted).