Class QuadCurveEdgeShape
java.lang.Object
org.graffiti.plugins.views.defaults.LineEdgeShape
org.graffiti.plugins.views.defaults.PolyLineEdgeShape
org.graffiti.plugins.views.defaults.QuadCurveEdgeShape
- All Implemented Interfaces:
Shape,EdgeShape,GraffitiShape,GraphElementShape
- Direct Known Subclasses:
SmoothLineEdgeShape
public class QuadCurveEdgeShape extends PolyLineEdgeShape
DOCUMENT ME!
- Version:
- $Revision: 1.11 $
-
Field Summary
Fields inherited from class org.graffiti.plugins.views.defaults.LineEdgeShape
hollowSourceArrowShape, hollowTargetArrowShapeFields inherited from interface org.graffiti.plugin.view.EdgeShape
CLICK_TOLERANCE -
Constructor Summary
Constructors Constructor Description QuadCurveEdgeShape() -
Method Summary
Modifier and Type Method Description voidbuildShape(EdgeGraphicAttribute edgeAttr, NodeShape sourceShape, NodeShape targetShape)This method sets all necessary properties of an edge using the values contained within theCollectionAttribute(like coordinates etc.).booleancontains(double x, double y)Returns true if the edge has been hit.Methods inherited from class org.graffiti.plugins.views.defaults.PolyLineEdgeShape
getIndexOfPathWhichContains, getXexcess, getYexcess, setCoordinateSystemMethods inherited from class org.graffiti.plugins.views.defaults.LineEdgeShape
contains, contains, contains, getBounds, getBounds2D, getHeadArrow, getPathIterator, getPathIterator, getRealBounds2D, getTailArrow, intersects, intersects, lineContains
-
Constructor Details
-
QuadCurveEdgeShape
public QuadCurveEdgeShape()
-
-
Method Details
-
buildShape
public void buildShape(EdgeGraphicAttribute edgeAttr, NodeShape sourceShape, NodeShape targetShape) throws ShapeNotFoundExceptionThis method sets all necessary properties of an edge using the values contained within theCollectionAttribute(like coordinates etc.). It also uses information about ports. It attaches arrows if there are any.- Specified by:
buildShapein interfaceEdgeShape- Overrides:
buildShapein classPolyLineEdgeShape- Parameters:
edgeAttr- the attribute that contains all necessary information to construct a line.sourceShape- DOCUMENT ME!targetShape- DOCUMENT ME!- Throws:
ShapeNotFoundException- DOCUMENT ME!
-
contains
public boolean contains(double x, double y)Returns true if the edge has been hit.- Specified by:
containsin interfaceShape- Overrides:
containsin classPolyLineEdgeShape- Parameters:
x- x coordinate relative to the coordinates of this shape.y- y coordinate relative to the coordinates of this shape.- Returns:
- true if the edge has been hit else false.
-