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
-
colorScheme
- The number of the color scheme associated with it.
-
ColorItem(String, int)
-
colorScheme
public int colorScheme
- The number of the color scheme associated with it. The numbers are
defined as constants in
RobotlCanvas.
ColorItem
public ColorItem(String label,
int inScheme)
- Parameters:
- label - passed to the CheckboxMenuItem constructor.
- inScheme - the color scheme associated with this menu item.