Class LabelFontAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.StringAttribute
de.ipk_gatersleben.ag_nw.graffiti.plugins.editcomponents.font_label_settings.LabelFontAttribute
- All Implemented Interfaces:
Attribute
,DeepCopy
,Displayable
public class LabelFontAttribute extends StringAttribute
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LabelFontAttribute()
LabelFontAttribute(String id)
LabelFontAttribute(String id, String value)
-
Method Summary
Modifier and Type Method Description Object
copy()
Returns a deep copy of this instance.void
setDefaultValue()
The attribute's value is set so that itsgetValue()
method will not returnnull
.String
toString(int n)
Returns a string representation prepended byn
spaces of this attribute.String
toXMLString()
Returns a well-formed XML string representing the Displayable.Methods inherited from class org.graffiti.attributes.StringAttribute
getString, getTypedStringAttribute, getTypedStringAttribute, getValue, putAttributeType, setString
Methods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getAttributable, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toString
-
Constructor Details
-
LabelFontAttribute
public LabelFontAttribute() -
LabelFontAttribute
-
LabelFontAttribute
-
-
Method Details
-
setDefaultValue
public void setDefaultValue()Description copied from interface:Attribute
The attribute's value is set so that itsgetValue()
method will not returnnull
.- Specified by:
setDefaultValue
in interfaceAttribute
- Overrides:
setDefaultValue
in classStringAttribute
- See Also:
Attribute.setDefaultValue()
-
copy
Description copied from class:StringAttribute
Returns a deep copy of this instance.- Specified by:
copy
in interfaceDeepCopy
- Overrides:
copy
in classStringAttribute
- Returns:
- a deep copy of this instance.
-
toString
Description copied from interface:Attribute
Returns a string representation prepended byn
spaces of this attribute.- Specified by:
toString
in interfaceAttribute
- Overrides:
toString
in classStringAttribute
- Returns:
- DOCUMENT ME!
- See Also:
Attribute.toString(int)
-
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 classStringAttribute
- Returns:
- string holding an XML representation of this Displayable
- See Also:
Displayable.toXMLString()
-