public final class ColorSelectionEvent extends EventObject
ColorSelectionsource| Constructor and Description |
|---|
ColorSelectionEvent(ColorSelection colorSelection,
Color oldColor,
Color newColor)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ColorSelection |
getColorSelection()
Returns the
ColorSelection from which this event originated |
Color |
getNewColor()
Returns the new color.
|
Color |
getOldColor()
Returns the old color.
|
String |
toString() |
getSourcepublic ColorSelectionEvent(ColorSelection colorSelection, Color oldColor, Color newColor)
colorSelection - The ColorSelectionoldColor - The old colornewColor - The new colorpublic ColorSelection getColorSelection()
ColorSelection from which this event originatedColorSelectionpublic Color getOldColor()
null if no color
was previously selectedpublic Color getNewColor()
null if no color
is selectedpublic String toString()
toString in class EventObjectCopyright © 2018. All rights reserved.