Class NodeLabelPositionAttribute

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

public class NodeLabelPositionAttribute
extends PositionAttribute
DOCUMENT ME!
Version:
$Revision: 1.6 $ Specifies position of a node label providing several parameters.
Author:
holleis
  • Constructor Details

    • NodeLabelPositionAttribute

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

      public NodeLabelPositionAttribute​(String id, double relHor, double relVert, double localAlign)
      Constructor for NodeLabelPositionAttribute.
      Parameters:
      id - DOCUMENT ME!
      relHor -
      relVert -
      localAlign -
    • NodeLabelPositionAttribute

      public NodeLabelPositionAttribute​(String id, DoubleAttribute relHor, DoubleAttribute relVert, DoubleAttribute localAlign)
      Constructor for NodeLabelPositionAttribute.
      Parameters:
      id -
      relHor -
      relVert -
      localAlign -
  • Method Details

    • setCollection

      public void setCollection​(Map<String,​Attribute> attrs)
      Sets the collection of attributes contained within this CollectionAttribute
      Specified by:
      setCollection in interface CollectionAttribute
      Overrides:
      setCollection in class PositionAttribute
      Parameters:
      attrs - the map that contains all attributes.
      Throws:
      IllegalArgumentException - DOCUMENT ME!
    • setLocalAlign

      public void setLocalAlign​(double localAlign)
      Sets the localAlign.
      Parameters:
      localAlign - The localAlign to set
    • getLocalAlign

      public double getLocalAlign()
      Returns the localAlign.
      Returns:
      double
    • setRelHor

      public void setRelHor​(double relHor)
      Sets the relHor.
      Parameters:
      relHor - The relHor to set
    • getRelHor

      public double getRelHor()
      Returns the relHor.
      Returns:
      double
    • setRelVert

      public void setRelVert​(double relVert)
      Sets the relVert.
      Parameters:
      relVert - The relVert to set
    • getRelVert

      public double getRelVert()
      Returns the relVert.
      Returns:
      double
    • copy

      public Object copy()
      Returns a deep copy of this object.
      Specified by:
      copy in interface DeepCopy
      Overrides:
      copy in class HashMapAttribute
      Returns:
      A deep copy of this object.