Class SmoothLineEdgeShape

All Implemented Interfaces:
Shape, EdgeShape, GraffitiShape, GraphElementShape

public class SmoothLineEdgeShape
extends QuadCurveEdgeShape
A class that represents line shapes that are "smooth" in the sense GML uses it.
Version:
$Revision: 1.11 $
  • Constructor Details

    • SmoothLineEdgeShape

      public SmoothLineEdgeShape()
      Default constructor. Used to ensure that next time buildShape is called, the bends are modified.
  • Method Details

    • buildShape

      public void buildShape​(EdgeGraphicAttribute edgeAttr, NodeShape sourceShape, NodeShape targetShape) throws ShapeNotFoundException
      This method sets all necessary properties of an edge using the values contained within the CollectionAttribute (like coordinates etc.). It also uses information about ports. It attaches arrows if there are any. When mustExpandBends is true, i.e. it is started the very first time for an object, all line segments except the first and last ones are divided into two equally long segments. That is to ensure that the single quadric splines fit together.
      Specified by:
      buildShape in interface EdgeShape
      Overrides:
      buildShape in class QuadCurveEdgeShape
      Parameters:
      edgeAttr - the attribute that contains all necessary information to construct a line.
      sourceShape - DOCUMENT ME!
      targetShape - DOCUMENT ME!
      Throws:
      ShapeNotFoundException - DOCUMENT ME!