ilog.views.util.swing.color
Class ColorChangedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.util.swing.color.ColorChangedEvent
All Implemented Interfaces:
Serializable

public class ColorChangedEvent
extends EventObject

An event to notify the modification of a color.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ColorChangedEvent(Object source, Color oldColor, Color newColor)
          Creates a new event.
 
Method Summary
 Color getNewColor()
          Returns the new color.
 Color getOldColor()
          Returns the value of the color before the color modification.
 
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

ColorChangedEvent

public ColorChangedEvent(Object source,
                         Color oldColor,
                         Color newColor)
Creates a new event.

Parameters:
source - the source of the event.
oldColor - the color before the change.
newColor - the new color.
Method Detail

getOldColor

public Color getOldColor()
Returns the value of the color before the color modification.


getNewColor

public Color getNewColor()
Returns the new color.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.