Class CompoundPositionAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.StringAttribute
de.ipk_gatersleben.ag_nw.graffiti.plugins.editcomponents.compound_image.CompoundPositionAttribute
- All Implemented Interfaces:
Attribute,DeepCopy,Displayable
public class CompoundPositionAttribute extends StringAttribute
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CompoundPositionAttribute()CompoundPositionAttribute(String id)CompoundPositionAttribute(String id, String value) -
Method Summary
Modifier and Type Method Description Objectcopy()Returns a deep copy of this instance.StringgetString()Returns the value of this object.ObjectgetValue()Returns the value of this attribute, i.e.voidsetDefaultValue()The attribute's value is set so that itsgetValue()method will not returnnull.voidsetString(String value)Sets the value of this object.StringtoString(int n)Returns a string representation prepended bynspaces of this attribute.StringtoXMLString()Returns a well-formed XML string representing the Displayable.Methods inherited from class org.graffiti.attributes.StringAttribute
getTypedStringAttribute, getTypedStringAttribute, putAttributeTypeMethods 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
-
CompoundPositionAttribute
public CompoundPositionAttribute() -
CompoundPositionAttribute
-
CompoundPositionAttribute
-
-
Method Details
-
setDefaultValue
public void setDefaultValue()Description copied from interface:AttributeThe attribute's value is set so that itsgetValue()method will not returnnull.- Specified by:
setDefaultValuein interfaceAttribute- Overrides:
setDefaultValuein classStringAttribute- See Also:
Attribute.setDefaultValue()
-
setString
Description copied from class:StringAttributeSets the value of this object. TheListenerManageris informed by the methodsetValue().- Overrides:
setStringin classStringAttribute- Parameters:
value- the new value of this object.
-
getString
Description copied from class:StringAttributeReturns the value of this object.- Overrides:
getStringin classStringAttribute- Returns:
- the value of this object.
-
getValue
Description copied from class:StringAttributeReturns the value of this attribute, i.e. contained Sting object.- Specified by:
getValuein interfaceAttribute- Specified by:
getValuein interfaceDisplayable- Overrides:
getValuein classStringAttribute- Returns:
- the value of the attribute, i.e. contained String object.
-
copy
Description copied from class:StringAttributeReturns a deep copy of this instance.- Specified by:
copyin interfaceDeepCopy- Overrides:
copyin classStringAttribute- Returns:
- a deep copy of this instance.
-
toString
Description copied from interface:AttributeReturns a string representation prepended bynspaces of this attribute.- Specified by:
toStringin interfaceAttribute- Overrides:
toStringin classStringAttribute- Returns:
- DOCUMENT ME!
- See Also:
Attribute.toString(int)
-
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 classStringAttribute- Returns:
- string holding an XML representation of this Displayable
- See Also:
Displayable.toXMLString()
-