org.opensha.sha.gcim.imCorrRel.event
Class IMCorrRelChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.opensha.sha.gcim.imCorrRel.event.IMCorrRelChangeEvent
All Implemented Interfaces:
Serializable

public class IMCorrRelChangeEvent
extends EventObject

Title: IMCorrRelChangeEvent

Description: Any time the selected IM Correlation Relation changed via the IMCorrRel GUI bean, this event is triggered and received by all listeners

Version:
1.0
Author:
Brendon Bradley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
IMCorrRelChangeEvent(Object reference, HashMap<TectonicRegionType,ImCorrelationRelationship> oldIMCorrRelMap, HashMap<TectonicRegionType,ImCorrelationRelationship> newIMCorrRelMap)
          Constructor for the ImCorrelationRelationChangeEvent object.
 
Method Summary
 HashMap<TectonicRegionType,ImCorrelationRelationship> getNewIMCorrRels()
          Gets the new ImCorrelationRelationship.
 HashMap<TectonicRegionType,ImCorrelationRelationship> getOldValue()
          Gets the old ImCorrelationRelationship.
 
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

IMCorrRelChangeEvent

public IMCorrRelChangeEvent(Object reference,
                            HashMap<TectonicRegionType,ImCorrelationRelationship> oldIMCorrRelMap,
                            HashMap<TectonicRegionType,ImCorrelationRelationship> newIMCorrRelMap)
Constructor for the ImCorrelationRelationChangeEvent object.

Parameters:
reference - Object which created this event
oldCorrRel - Old ImCorrelationRelationship
newCorrRel - New ImCorrelationRelationship
Method Detail

getNewIMCorrRels

public HashMap<TectonicRegionType,ImCorrelationRelationship> getNewIMCorrRels()
Gets the new ImCorrelationRelationship.

Returns:
New ImCorrelationRelationship

getOldValue

public HashMap<TectonicRegionType,ImCorrelationRelationship> getOldValue()
Gets the old ImCorrelationRelationship.

Returns:
Old ImCorrelationRelationship