java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.StringAttribute
de.ipk_gatersleben.ag_nw.graffiti.plugins.editcomponents.font_label_style.LabelStyleAttribute
All Implemented Interfaces:
Attribute, DeepCopy, Displayable

public class LabelStyleAttribute
extends StringAttribute
  • Constructor Details

    • LabelStyleAttribute

      public LabelStyleAttribute()
    • LabelStyleAttribute

      public LabelStyleAttribute​(String id)
    • LabelStyleAttribute

      public LabelStyleAttribute​(String id, String value)
  • Method Details

    • setDefaultValue

      public void setDefaultValue()
      Description copied from interface: Attribute
      The attribute's value is set so that its getValue() method will not return null.
      Specified by:
      setDefaultValue in interface Attribute
      Overrides:
      setDefaultValue in class StringAttribute
      See Also:
      Attribute.setDefaultValue()
    • copy

      public Object copy()
      Description copied from class: StringAttribute
      Returns a deep copy of this instance.
      Specified by:
      copy in interface DeepCopy
      Overrides:
      copy in class StringAttribute
      Returns:
      a deep copy of this instance.
    • toString

      public String toString​(int n)
      Description copied from interface: Attribute
      Returns a string representation prepended by n spaces of this attribute.
      Specified by:
      toString in interface Attribute
      Overrides:
      toString in class StringAttribute
      Returns:
      DOCUMENT ME!
      See Also:
      Attribute.toString(int)
    • toXMLString

      public String 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 interface Displayable
      Overrides:
      toXMLString in class StringAttribute
      Returns:
      string holding an XML representation of this Displayable
      See Also:
      Displayable.toXMLString()