public class ColorParameter extends java.lang.Object implements IParameter, java.awt.event.ActionListener
Constructor and Description |
---|
ColorParameter(java.awt.Color pColor)
Creates a
ColorParameter object with the specified color value. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.awt.Color |
getValue()
Returns the color value that is represented by this
ColorParameter object. |
void |
setValue(java.awt.Color pColor)
Sets the color value that should be represented by this
ColorParameter object. |
boolean |
setValue(java.lang.String pValue)
Sets the color value that should be represented by this
ColorParameter object. |
public ColorParameter(java.awt.Color pColor)
ColorParameter
object with the specified color value.pColor
- The color value that should be represented by this ColorParameter
object.public void setValue(java.awt.Color pColor)
ColorParameter
object.pColor
- The color value that should be represented by this ColorParameter
object.public boolean setValue(java.lang.String pValue)
ColorParameter
object.
The color value is representated by a string. The rgb values can be specified separated by commas. Also
default colors like black, blue, cyan can be specified as strings.setValue
in interface IParameter
pValue
- The string value representing the color that should be represented by this ColorParameter
object.public java.awt.Color getValue()
ColorParameter
object.ColorParameter
object.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener