public abstract class ShapeEdge extends AbstractEdge
Constructor and Description |
---|
ShapeEdge() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.geom.Point2D aPoint)
Tests whether the edge contains a point.
|
java.awt.geom.Rectangle2D |
getBounds(java.awt.Graphics2D g2)
Gets the smallest rectangle that bounds this edge.
|
abstract java.awt.Shape |
getShape()
Returns the path that should be stroked to
draw this edge.
|
clone, connect, getConnectionPoints, getEnd, getStart
public ShapeEdge()
public abstract java.awt.Shape getShape()
public java.awt.geom.Rectangle2D getBounds(java.awt.Graphics2D g2)
Edge
getBounds
in interface Edge
getBounds
in class AbstractEdge