Package org.graffiti.plugin.parameter
Class ColorParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.ColorParameter
- All Implemented Interfaces:
Displayable
,Parameter
,SingleParameter
public class ColorParameter extends AbstractSingleParameter
-
Constructor Summary
Constructors Constructor Description ColorParameter(Color value, String name, String description)
-
Method Summary
Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getDescription, getIcon, getImage, getName, isLeftAligned, setDescription, setLeftAligned, toString
-
Constructor Details
-
ColorParameter
-
-
Method Details
-
getColor
-
isValid
public boolean isValid() -
setValue
Description copied from interface:Displayable
Sets the encapsulated object.- Specified by:
setValue
in interfaceDisplayable
- Overrides:
setValue
in classAbstractSingleParameter
-
getValue
Returns the value of this parameter.- Specified by:
getValue
in interfaceDisplayable
- Overrides:
getValue
in classAbstractSingleParameter
- Returns:
- the value of this parameter.
-
toXMLString
Description copied from interface:Displayable
Returns a well-formed XML string representing the Displayable. The Displayable should be reconstructable via this representation. Therefore it must at least include the type of Displayable (classname) and a representation of its value. PROBABLE FUTURE DESIGN: The Displayables themselves will provide a method to reconstruct their value from the XML representation they provided.- Specified by:
toXMLString
in interfaceDisplayable
- Overrides:
toXMLString
in classAbstractSingleParameter
- Returns:
- string holding an XML representation of this Displayable
- See Also:
Displayable.toXMLString()
-