All Packages Class Hierarchy This Package Previous Next Index
Class utils.GUI.ColorChooser
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----utils.GUI.ColorChooser
- public class ColorChooser
- extends Canvas
A GUI component which allows the user to select a color.
it generates ACTION_EVENTS with an arg which is the Color
that the user has selected
-
MIN
-
-
ColorChooser(Color[])
- specify the palette as an array of Colors
-
addNotify()
-
-
getCurrentColor()
-
-
minimumSize()
-
-
mouseDown(Event, int, int)
- generates ACTION_EVENTS with an arg which is the
chosen color
-
paint(Graphics)
-
-
preferredSize()
-
-
resize(int, int)
-
MIN
public static int MIN
ColorChooser
public ColorChooser(Color c[])
- specify the palette as an array of Colors
addNotify
public void addNotify()
- Overrides:
- addNotify in class Canvas
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
resize
public void resize(int w,
int h)
- Overrides:
- resize in class Component
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- generates ACTION_EVENTS with an arg which is the
chosen color
- Overrides:
- mouseDown in class Component
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
getCurrentColor
public Color getCurrentColor()
All Packages Class Hierarchy This Package Previous Next Index