lt.monarch.chart.events
Class ColorEvent

java.lang.Object
  extended by lt.monarch.chart.events.ColorEvent
All Implemented Interfaces:
AbstractEvent

public class ColorEvent
extends java.lang.Object
implements AbstractEvent

Color change event


Nested Class Summary
Modifier and Type Class and Description
static class ColorEvent.ColorEvents
           
 
Constructor Summary
Constructor and Description
ColorEvent(java.awt.Color oldColor, java.awt.Color newColor, ColorEvent.ColorEvents event)
          Color change event
 
Method Summary
Modifier and Type Method and Description
 java.awt.Color getNewColor()
          Gets new color
 java.awt.Color getOldColor()
          Gets old color
 java.lang.Enum<?> getType()
          Gets event type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorEvent

public ColorEvent(java.awt.Color oldColor,
                  java.awt.Color newColor,
                  ColorEvent.ColorEvents event)
Color change event

Parameters:
oldColor - old color
newColor - new color
Method Detail

getOldColor

public java.awt.Color getOldColor()
Gets old color

Returns:
old color

getNewColor

public java.awt.Color getNewColor()
Gets new color

Returns:
new color

getType

public java.lang.Enum<?> getType()
Description copied from interface: AbstractEvent
Gets event type

Specified by:
getType in interface AbstractEvent
Returns:
event type