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
-
Colors
- The colors to be chosen.
-
ColorChooser()
- Constructs a color chooser with the null default color.
-
ColorChooser(Color)
- Constructs a color chooser with the specified default color.
-
addItemListener(ItemListener)
- Add a listener to recieve item events when the state of an item changes.
-
getColor()
- Returns the selected color.
-
getSelectedObjects()
- Returns the selected items or null if no items are selected.
-
removeItemListener(ItemListener)
- Removes an item listener.
Colors
public static final Color Colors[]
- The colors to be chosen.
ColorChooser
public ColorChooser()
- Constructs a color chooser with the null default color.
ColorChooser
public ColorChooser(Color defaultColor)
- Constructs a color chooser with the specified default color.
getColor
public Color getColor()
- Returns the selected color.
getSelectedObjects
public Object[] getSelectedObjects()
- Returns the selected items or null if no items are selected.
- See Also:
- ItemSelectable
addItemListener
public void addItemListener(ItemListener l)
- Add a listener to recieve item events when the state of an item changes.
- See Also:
- ItemSelectable
removeItemListener
public void removeItemListener(ItemListener l)
- Removes an item listener.
- See Also:
- ItemSelectable
All Packages Class Hierarchy This Package Previous Next Index