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


Variable Index

 o MIN

Constructor Index

 o ColorChooser(Color[])
specify the palette as an array of Colors

Method Index

 o addNotify()
 o getCurrentColor()
 o minimumSize()
 o mouseDown(Event, int, int)
generates ACTION_EVENTS with an arg which is the chosen color
 o paint(Graphics)
 o preferredSize()
 o resize(int, int)

Variables

 o MIN
 public static int MIN

Constructors

 o ColorChooser
 public ColorChooser(Color c[])
specify the palette as an array of Colors

Methods

 o addNotify
 public void addNotify()
Overrides:
addNotify in class Canvas
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o resize
 public void resize(int w,
                    int h)
Overrides:
resize in class Component
 o 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
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o getCurrentColor
 public Color getCurrentColor()

All Packages  Class Hierarchy  This Package  Previous  Next  Index