Class SmoothLineEdgeShape

  extended by org.graffiti.plugins.views.defaults.LineEdgeShape
      extended by org.graffiti.plugins.views.defaults.PolyLineEdgeShape
          extended by org.graffiti.plugins.views.defaults.SmoothLineEdgeShape
All Implemented Interfaces:
Shape, EdgeShape, GraffitiShape, GraphElementShape

public class SmoothLineEdgeShape
extends PolyLineEdgeShape

A class that represents line shapes that are "smooth" in the sense GML uses it.

$Revision: 5766 $

Field Summary
Fields inherited from interface org.graffiti.plugin.view.EdgeShape
Constructor Summary
          Default constructor.
Method Summary
 void buildShape(EdgeGraphicAttribute edgeAttr, NodeShape sourceShape, NodeShape targetShape)
          This method sets all necessary properties of an edge using the values contained within the CollectionAttribute (like coordinates etc.).
Methods inherited from class org.graffiti.plugins.views.defaults.PolyLineEdgeShape
Methods inherited from class org.graffiti.plugins.views.defaults.LineEdgeShape
contains, contains, contains, getBounds, getBounds2D, getHeadArrow, getLinePath, getPathIterator, getPathIterator, getRealBounds2D, getTailArrow, intersects, intersects, lineContains, setTrimArrows
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


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

Method Detail


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
buildShape in class PolyLineEdgeShape
edgeAttr - the attribute that contains all necessary information to construct a line.
sourceShape - DOCUMENT ME!
targetShape - DOCUMENT ME!
ShapeNotFoundException - DOCUMENT ME!

Generated at 2012-05-30 11:01:25 PM CEST