Class EdgeLabelPositionAttribute

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

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

    • EdgeLabelPositionAttribute

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

      public EdgeLabelPositionAttribute​(String id, double relAlign, int alignSeg, double absHor, double absVert)
      Constructor for NodeLabelPositionAttribute.
      Parameters:
      id -
      relAlign -
      alignSeg -
      absHor -
      absVert -
    • EdgeLabelPositionAttribute

      public EdgeLabelPositionAttribute​(String id, DoubleAttribute relAlign, IntegerAttribute alignSeg, DoubleAttribute absHor, DoubleAttribute absVert)
      Constructor for NodeLabelPositionAttribute.
      Parameters:
      id -
      relAlign -
      alignSeg -
      absHor -
      absVert -
  • Method Details

    • setAbsHor

      public void setAbsHor​(double absHor)
      Sets the absHor.
      Parameters:
      absHor - The absHor to set
    • getAbsHor

      public double getAbsHor()
      Returns the absHor.
      Returns:
      double
    • setAbsVert

      public void setAbsVert​(double absVert)
      Sets the absVert.
      Parameters:
      absVert - The absVert to set
    • getAbsVert

      public double getAbsVert()
      Returns the absVert.
      Returns:
      double
    • setAlignSegment

      public void setAlignSegment​(int alignSegment)
      Sets the alignSegment.
      Parameters:
      alignSegment - The alignSegment to set
    • getAlignSegment

      public int getAlignSegment()
      Returns the alignSegment.
      Returns:
      IntegerAttribute
    • 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!
    • setRelAlign

      public void setRelAlign​(double relAlign)
      Sets the relAlign.
      Parameters:
      relAlign - The relAlign to set
    • getRelAlign

      public double getRelAlign()
      Returns the relAlign.
      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.