Class EdgeGraphicAttribute

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

public class EdgeGraphicAttribute
extends GraphElementGraphicAttribute
Defines all graphic attributes of an edge
Version:
$Revision: 1.8 $
Author:
breu
  • Constructor Details

    • EdgeGraphicAttribute

      public EdgeGraphicAttribute​(String ah, String at, double t, DockingAttribute d, LinkedHashMapAttribute b, String lt)
      Constructs an EdgeGraphicAttribute and initializes all its members.
      Parameters:
      ah - the arrowhead-value of the attribute.
      at - the arrowtail-value of the attribute.
      t - the thickness-value of the attribute.
      d - the docking-value of the attribute.
      b - the CollectionAttriubte containing the bends.
      lt - the lineType of the edge.
    • EdgeGraphicAttribute

      public EdgeGraphicAttribute() throws IllegalIdException
      Constructs an EdgeGraphicAttribute and initializes all its members.
      Throws:
      IllegalIdException
    • EdgeGraphicAttribute

      public EdgeGraphicAttribute​(String ah, String at, double t, DockingAttribute d) throws IllegalIdException
      Constructs an EdgeGraphicAttribute and initializes all its members.
      Parameters:
      ah - the arrowhead-value of the attribute.
      at - the arrowtail-value of the attribute.
      t - the thickness-value of the attribute.
      d - the docking-value of the attribute.
      Throws:
      IllegalIdException
    • EdgeGraphicAttribute

      public EdgeGraphicAttribute​(String ah, String at, DoubleAttribute t, DockingAttribute d) throws IllegalIdException
      Constructs an EdgeGraphicAttribute and initializes all its members.
      Parameters:
      ah - the arrowhead-value of the attribute.
      at - the arrowtail-value of the attribute.
      t - the thickness-value of the attribute.
      d - the docking-value of the attribute.
      Throws:
      IllegalIdException
    • EdgeGraphicAttribute

      public EdgeGraphicAttribute​(StringAttribute ah, StringAttribute at, double t, DockingAttribute d) throws IllegalIdException
      Constructs an EdgeGraphicAttribute and initializes all its members.
      Parameters:
      ah - the arrowhead-value of the attribute.
      at - the arrowtail-value of the attribute.
      t - the thickness-value of the attribute.
      d - the docking-value of the attribute.
      Throws:
      IllegalIdException
  • Method Details

    • setArrowhead

      public void setArrowhead​(String ah)
      Sets the 'arrowhead'-value.
      Parameters:
      ah - the 'arrowhead'-value to be set.
    • getArrowhead

      public String getArrowhead()
      Returns the 'arrowhead'-value of the encapsulated edge.
      Returns:
      the 'arrowhead'-value of the encapsulated edge.
    • setArrowtail

      public void setArrowtail​(String at)
      Sets the 'arrowtail'-value.
      Parameters:
      at - the 'arrowtail'-value to be set.
    • getArrowtail

      public String getArrowtail()
      Returns the 'arrowtail'-value of the encapsulated edge.
      Returns:
      the 'arrowtail'-value of the encapsulated edge.
    • setBends

      public void setBends​(SortedCollectionAttribute b)
      Sets the 'bends'-value.
      Parameters:
      b - the 'bends'-value to be set.
    • getBends

      public SortedCollectionAttribute getBends()
      Returns the collection of CoordinateAttributes specifying the bends for this edge.
      Returns:
      the collection of CoordinateAttributes specifying the bends for this edge.
    • 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 HashMapAttribute
      Parameters:
      attrs - the map that contains all attributes.
      Throws:
      IllegalArgumentException - DOCUMENT ME!
    • setDocking

      public void setDocking​(DockingAttribute d)
      Sets the 'docking'-value.
      Parameters:
      d - the 'docking'-value to be set.
    • getDocking

      public DockingAttribute getDocking()
      Returns the 'docking'-value of the encapsulated edge.
      Returns:
      the 'docking'-value of the encapsulated edge.
    • setLineType

      public void setLineType​(String l)
      DOCUMENT ME!
      Parameters:
      l -
    • getLineType

      public String getLineType()
      Returns the line type.
      Returns:
      DOCUMENT ME!
    • setThickness

      public void setThickness​(double t)
      Sets the 'thickness'-value.
      Parameters:
      t - the 'thickness'-value of the encapsulated edge.
    • getThickness

      public double getThickness()
      Returns the 'thickness'-value of the encapsulated edge.
      Returns:
      the 'thickness'-value of the encapsulated edge.
    • 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.
    • getBendAttributes

      public Collection<Attribute> getBendAttributes()
    • getBendCount

      public int getBendCount()