public class ChopRectangleConnector extends AbstractConnector
Connector
which locates a connection point at the bounds
of any figure which has a rectangular shape, such as RectangleFigure
.Connector
,
Serialized FormConstructor and Description |
---|
ChopRectangleConnector()
Creates a new instance.
|
ChopRectangleConnector(Figure owner) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.geom.Point2D.Double |
chop(Figure target,
java.awt.geom.Point2D.Double from) |
java.awt.geom.Point2D.Double |
findEnd(ConnectionFigure connection)
Finds the end point for the connection.
|
java.awt.geom.Point2D.Double |
findStart(ConnectionFigure connection)
Finds the start point for the connection.
|
clone, contains, draw, findPoint, getAnchor, getBounds, getConnectorTarget, getDrawingArea, getOwner, isConnectToDecorator, read, setConnectToDecorator, setOwner, updateAnchor, updateEndLocation, updateStartLocation, write
public ChopRectangleConnector()
public ChopRectangleConnector(Figure owner)
public java.awt.geom.Point2D.Double findStart(ConnectionFigure connection)
Connector
findStart
in interface Connector
findStart
in class AbstractConnector
public java.awt.geom.Point2D.Double findEnd(ConnectionFigure connection)
Connector
findEnd
in interface Connector
findEnd
in class AbstractConnector
protected java.awt.geom.Point2D.Double chop(Figure target, java.awt.geom.Point2D.Double from)