All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jas.util.ColorMenu

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.AbstractButton
                                   |
                                   +----javax.swing.JMenuItem
                                           |
                                           +----javax.swing.JMenu
                                                   |
                                                   +----jas.util.ColorMenu

public class ColorMenu
extends JMenu

Variable Index

 o BASIC_COLOR_NAMES
An array containing the names of colors defined as constants in java.awt.Color.
 o BASIC_COLORS
An array containing the basic colors defined as constants in java.awt.Color.
 o EXTENDED_COLOR_NAMES
An array containing names of the expanded selection of colors.
 o EXTENDED_COLORS
An array containing an expanded selection of colors.

Constructor Index

 o ColorMenu(String)
 o ColorMenu(String, boolean)
 o ColorMenu(String, ColorSelectionModel)
 o ColorMenu(String, ColorSelectionModel, boolean)
 o ColorMenu(String, ColorSelectionModel, Color[], String[])

Method Index

 o fireMenuSelected()
 o getColor()
 o getSelectionModel()
 o setColor(Color)
 o setSelectionModel(ColorSelectionModel)

Variables

 o BASIC_COLORS
 public static final Color BASIC_COLORS[]
An array containing the basic colors defined as constants in java.awt.Color.

 o BASIC_COLOR_NAMES
 public static final String BASIC_COLOR_NAMES[]
An array containing the names of colors defined as constants in java.awt.Color.

See Also:
BASIC_COLORS
 o EXTENDED_COLORS
 public static final Color EXTENDED_COLORS[]
An array containing an expanded selection of colors.

 o EXTENDED_COLOR_NAMES
 public static final String EXTENDED_COLOR_NAMES[]
An array containing names of the expanded selection of colors.

See Also:
EXTENDED_COLORS

Constructors

 o ColorMenu
 public ColorMenu(String name,
                  ColorSelectionModel model)
 o ColorMenu
 public ColorMenu(String name)
 o ColorMenu
 public ColorMenu(String name,
                  boolean extendedColors)
 o ColorMenu
 public ColorMenu(String name,
                  ColorSelectionModel model,
                  boolean extendedColors)
 o ColorMenu
 public ColorMenu(String name,
                  ColorSelectionModel model,
                  Color colors[],
                  String names[])

Methods

 o getSelectionModel
 public ColorSelectionModel getSelectionModel()
 o setSelectionModel
 public void setSelectionModel(ColorSelectionModel model)
 o getColor
 public Color getColor()
 o setColor
 public void setColor(Color color)
 o fireMenuSelected
 protected void fireMenuSelected()
Overrides:
fireMenuSelected in class JMenu

All Packages  Class Hierarchy  This Package  Previous  Next  Index