Package org.graffiti.plugin.view
Interface EdgeShape
- All Superinterfaces:
GraffitiShape
,GraphElementShape
,Shape
- All Known Implementing Classes:
LineEdgeShape
,PolyLineEdgeShape
,QuadCurveEdgeShape
,SmoothLineEdgeShape
,StraightLineEdgeShape
public interface EdgeShape extends GraphElementShape
DOCUMENT ME!
- Version:
- $Revision: 1.5 $
- Author:
- $Author: klukas $
-
Field Summary
Fields Modifier and Type Field Description static double
CLICK_TOLERANCE
The allowed distance of a mouse click from an edge where the edge is still selected. -
Method Summary
Modifier and Type Method Description void
buildShape(EdgeGraphicAttribute graphics, NodeShape source, NodeShape target)
Called when one of the nodes belonging to this edge has changed.Shape
getHeadArrow()
Returns the shape representing the arrow at the target node.Shape
getTailArrow()
Returns the shape representing the arrow at the source node.Methods inherited from interface org.graffiti.plugin.view.GraphElementShape
getRealBounds2D, getXexcess, getYexcess, setCoordinateSystem
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
-
Field Details
-
CLICK_TOLERANCE
static final double CLICK_TOLERANCEThe allowed distance of a mouse click from an edge where the edge is still selected.- See Also:
- Constant Field Values
-
-
Method Details
-
getHeadArrow
Shape getHeadArrow()Returns the shape representing the arrow at the target node.- Returns:
- the shape representing the arrow at the target node.
-
getTailArrow
Shape getTailArrow()Returns the shape representing the arrow at the source node.- Returns:
- the shape representing the arrow at the source node.
-
buildShape
void buildShape(EdgeGraphicAttribute graphics, NodeShape source, NodeShape target) throws ShapeNotFoundExceptionCalled when one of the nodes belonging to this edge has changed.- Parameters:
graphics
-source
-target
-- Throws:
ShapeNotFoundException
-