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 Form| Constructor 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, writepublic ChopRectangleConnector()
public ChopRectangleConnector(Figure owner)
public java.awt.geom.Point2D.Double findStart(ConnectionFigure connection)
ConnectorfindStart in interface ConnectorfindStart in class AbstractConnectorpublic java.awt.geom.Point2D.Double findEnd(ConnectionFigure connection)
ConnectorfindEnd in interface ConnectorfindEnd in class AbstractConnectorprotected java.awt.geom.Point2D.Double chop(Figure target, java.awt.geom.Point2D.Double from)