All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.awt.draw.PaletteBox
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----ncsa.awt.draw.PaletteBox
- public class PaletteBox
- extends Panel
-
PaletteBox()
- Constructs a color palette box
-
getPalette()
-
-
getSelectedColor()
- Return the currently selected color
-
setPalette(Color[][])
-
-
update(Graphics)
-
-
updateColor(Color)
-
-
updateColors()
-
PaletteBox
public PaletteBox()
- Constructs a color palette box
update
public void update(Graphics g)
- Overrides:
- update in class Container
getSelectedColor
public Color getSelectedColor()
- Return the currently selected color
- Returns:
- the selected Color
getPalette
public Color[][] getPalette()
setPalette
public void setPalette(Color color[][])
updateColors
public void updateColors()
updateColor
public void updateColor(Color color)
All Packages Class Hierarchy This Package Previous Next Index