Class NodeLabelAttribute

All Implemented Interfaces:
Comparable<Object>, Attribute, CollectionAttribute, DeepCopy, GraphicAttributeConstants, Displayable

public class NodeLabelAttribute
extends LabelAttribute
DOCUMENT ME!
Version:
$Revision: 1.4 $ Extends LabelAttribute by a PositionAttribute specific for nodes.
Author:
holleis
  • Constructor Details

    • NodeLabelAttribute

      public NodeLabelAttribute​(String id)
      Constructor for NodeLabelAttribute.
      Parameters:
      id -
    • NodeLabelAttribute

      public NodeLabelAttribute​(String id, String l)
      Constructor for NodeLabelAttribute.
      Parameters:
      id -
      l - label string
  • Method Details

    • setPosition

      public void setPosition​(NodeLabelPositionAttribute p)
      Sets the 'position'-value.
      Parameters:
      p - the 'position'-value to be set.
    • getPosition

      public NodeLabelPositionAttribute getPosition()
      Returns the NodeLabelPositionAttribute specifying the position of the encapsulated label.
      Returns:
      the NodeLabelPositionAttribute specifying the position of the encapsulated label.