/** * ColorEvent.java 1.00 97/04/12 Merlin Hughes * * Copyright (c) 1997 Prominence Dot Com, Inc. All Rights Reserved. * * Permission to use, copy, modify, and distribute this software * for commercial and non-commercial purposes and without fee is * hereby granted provided that this copyright notice appears in * all copies. * * http://prominence.com/ merlin@prominence.com */ import java.awt.AWTEvent; import java.awt.Color; public class ColorEvent extends AWTEvent { public static final int COLOR_PICKED = AWTEvent.RESERVED_ID_MAX + 1; protected Color color; public ColorEvent (Object source, Color color) { super (source, COLOR_PICKED); this.color = color; } public Color getColor () { return color; } public String paramString () { return "COLOR_PICKED,color=" + color; } }