com.ijchart.xychart.event
Class ChartChangeEvent

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

public class ChartChangeEvent
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 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
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChartChangeEvent(java.lang.Object source)
           Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.
ChartChangeEvent(java.lang.Object source, IJChart chart)
           Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.
ChartChangeEvent(java.lang.Object source, IJChart chart, ChartChangeEventType type)
           Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Override equals method.
 IJChart getChart()
           Returns the chart that generated the change event.
 ChartChangeEventType getType()
           Returns the event type.
 int hashCode()
           Returns a hash code value for the object.
 void setChart(IJChart chart)
           Sets the chart that generated the change event.
 void setType(ChartChangeEventType type)
           Sets the event type.
 java.lang.String toString()
           Override toString method.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChartChangeEvent

public ChartChangeEvent(java.lang.Object source)
Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.

Parameters:
source - Object The source of the event (could be the chart, a title,an axis etc.).

ChartChangeEvent

public ChartChangeEvent(java.lang.Object source,
                        IJChart chart)
Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.

Parameters:
source - The source of the event (could be the chart, a title, an axis etc.).
chart - The chart that generated the event.

ChartChangeEvent

public ChartChangeEvent(java.lang.Object source,
                        IJChart chart,
                        ChartChangeEventType type)
Creates a new chart change event,the event type is ChartChangeEventType.GENERAL.

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.
Method Detail

getChart

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

Returns:
The chart that generated the change event.

setChart

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

Parameters:
chart - The chart that generated the event.

getType

public ChartChangeEventType getType()
Returns the event type.

Returns:
The event type.

setType

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

Parameters:
type - The event type.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
int The hashcode.

equals

public boolean equals(java.lang.Object obj)
Override equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.util.EventObject
Returns:
String