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:DisplayableSets the encapsulated object.- Specified by:
setValuein interfaceDisplayable- Overrides:
setValuein classAbstractSingleParameter
-
getValue
Returns the value of this parameter.- Specified by:
getValuein interfaceDisplayable- Overrides:
getValuein classAbstractSingleParameter- Returns:
- the value of this parameter.
-
toXMLString
Description copied from interface:DisplayableReturns 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:
toXMLStringin interfaceDisplayable- Overrides:
toXMLStringin classAbstractSingleParameter- Returns:
- string holding an XML representation of this Displayable
- See Also:
Displayable.toXMLString()
-