All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.editor.ColorChooser

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----jp.kyasu.awt.KContainer
                           |
                           +----jp.kyasu.awt.Panel
                                   |
                                   +----jp.kyasu.awt.PopupPanel
                                           |
                                           +----jp.kyasu.editor.ColorChooser

public class ColorChooser
extends PopupPanel
implements ItemSelectable
The ColorChooser allows a user to select a color.

Version:
19 May 1998
Author:
Kazuki YASUMATSU
See Also:
showPopup

Variable Index

 o Colors
The colors to be chosen.

Constructor Index

 o ColorChooser()
Constructs a color chooser with the null default color.
 o ColorChooser(Color)
Constructs a color chooser with the specified default color.

Method Index

 o addItemListener(ItemListener)
Add a listener to recieve item events when the state of an item changes.
 o getColor()
Returns the selected color.
 o getSelectedObjects()
Returns the selected items or null if no items are selected.
 o removeItemListener(ItemListener)
Removes an item listener.

Variables

 o Colors
 public static final Color Colors[]
The colors to be chosen.

Constructors

 o ColorChooser
 public ColorChooser()
Constructs a color chooser with the null default color.

 o ColorChooser
 public ColorChooser(Color defaultColor)
Constructs a color chooser with the specified default color.

Methods

 o getColor
 public Color getColor()
Returns the selected color.

 o getSelectedObjects
 public Object[] getSelectedObjects()
Returns the selected items or null if no items are selected.

See Also:
ItemSelectable
 o addItemListener
 public void addItemListener(ItemListener l)
Add a listener to recieve item events when the state of an item changes.

See Also:
ItemSelectable
 o removeItemListener
 public void removeItemListener(ItemListener l)
Removes an item listener.

See Also:
ItemSelectable

All Packages  Class Hierarchy  This Package  Previous  Next  Index