Class ColorItem

java.lang.Object
   |
   +----java.awt.MenuComponent
           |
           +----java.awt.MenuItem
                   |
                   +----java.awt.CheckboxMenuItem
                           |
                           +----ColorItem

public class ColorItem
extends CheckboxMenuItem
These menu items are created for the Colors menu. This class makes the management of color schemes easier and more robust.

Author:
Peter Sagerson, petersag@wpi.edu

Variable Index

 o colorScheme
The number of the color scheme associated with it.

Constructor Index

 o ColorItem(String, int)

Variables

 o colorScheme
 public int colorScheme
The number of the color scheme associated with it. The numbers are defined as constants in RobotlCanvas.

Constructors

 o ColorItem
 public ColorItem(String label,
                  int inScheme)
Parameters:
label - passed to the CheckboxMenuItem constructor.
inScheme - the color scheme associated with this menu item.