Class marimba.gui.ColorPickerWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.ColorPickerWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ColorPickerWidget
- public class ColorPickerWidget
- extends Widget
Widget to choose a color
- Version:
- 1.3, 12/19/96
- Author:
- Carl W. Haynes III
-
blue
- The current value of the blue slider.
-
blueImage
- The image for the blue slider.
-
filled
- A color picker can be filled.
-
green
- The current value of the green slider.
-
greenImage
- The image for the green slider.
-
red
- The current value of the red slider.
-
redImage
- The image for the red slider.
-
ColorPickerWidget()
- Default constructor.
-
ColorPickerWidget(Color)
- Constructor with color.
-
createImages()
- Set the colors.
-
drawBlue(Graphics)
- Draw the blue selector
-
drawGreen(Graphics)
- Draw the green selector
-
drawPreview(Graphics)
- Draw the preview selector
-
drawRed(Graphics)
- Draw the red selector.
-
drawText(Graphics)
- Draw the text
-
getColorValue()
- Get the current color, by constructing one
using the current red, green and blue settings.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getValue()
- Get the current color.
-
handleEvent(Event)
- Handle the events.
-
isFilled()
- Check whether the color picker is filled.
-
paint(Graphics)
- Paint this color picker.
-
setFilled(boolean)
- Let the color picker fill itself or not.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setValue(Object)
- Set the current color.
-
start()
- Create the images.
filled
public boolean filled
- A color picker can be filled.
- See Also:
- isFilled, setFilled
red
protected int red
- The current value of the red slider.
- See Also:
- getValue, getColorValue
green
protected int green
- The current value of the green slider.
- See Also:
- getValue, getColorValue
blue
protected int blue
- The current value of the blue slider.
- See Also:
- getValue, getColorValue
blueImage
protected Image blueImage
- The image for the blue slider.
redImage
protected Image redImage
- The image for the red slider.
greenImage
protected Image greenImage
- The image for the green slider.
ColorPickerWidget
public ColorPickerWidget()
- Default constructor.
ColorPickerWidget
public ColorPickerWidget(Color color)
- Constructor with color.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class Widget
isFilled
public boolean isFilled()
- Check whether the color picker is filled.
- See Also:
- filled
setFilled
public void setFilled(boolean filled)
- Let the color picker fill itself or not.
- See Also:
- filled
start
public void start()
- Create the images.
- Overrides:
- start in class Widget
createImages
protected void createImages()
- Set the colors.
setValue
public void setValue(Object color)
- Set the current color.
- Overrides:
- setValue in class Widget
getValue
public Object getValue()
- Get the current color.
- Overrides:
- getValue in class Widget
- See Also:
- getColorValue
getColorValue
public Color getColorValue()
- Get the current color, by constructing one
using the current red, green and blue settings.
- See Also:
- color
paint
public void paint(Graphics g)
- Paint this color picker.
- Overrides:
- paint in class Widget
drawRed
protected void drawRed(Graphics g)
- Draw the red selector.
drawGreen
protected void drawGreen(Graphics g)
- Draw the green selector
drawBlue
protected void drawBlue(Graphics g)
- Draw the blue selector
drawPreview
protected void drawPreview(Graphics g)
- Draw the preview selector
drawText
protected void drawText(Graphics g)
- Draw the text
handleEvent
public boolean handleEvent(Event evt)
- Handle the events.
- Overrides:
- handleEvent in class Widget
All Packages Class Hierarchy This Package Previous Next Index