com.ijchart.xychart.event
Class DatasetChangeEvent

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

public class DatasetChangeEvent
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 dataset.

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
DatasetChangeEvent(java.lang.Object source, IDataset dataset)
           Constructs a new dataset changed event.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 IDataset getDataset()
           Returns the dataset that generated the event.
 int hashCode()
          Returns a hash code value for the object.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatasetChangeEvent

public DatasetChangeEvent(java.lang.Object source,
                          IDataset dataset)
Constructs a new dataset changed event.

Parameters:
source - Object The source of the event.
dataset - IDataset The dataset that generated the event (null permitted).
Method Detail

getDataset

public IDataset getDataset()
Returns the dataset that generated the event. Note that the dataset maybe null.

Returns:
The dataset (possibly null).

hashCode

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

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

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

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