org.jhotdraw.draw.connector
Class ChopRectangleConnector
- java.lang.Object
-
- org.jhotdraw.draw.connector.AbstractConnector
-
- org.jhotdraw.draw.connector.ChopRectangleConnector
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Connector, DOMStorable
- Direct Known Subclasses:
- ChopBezierConnector, ChopDiamondConnector, ChopEllipseConnector, ChopRoundRectangleConnector, ChopTriangleConnector, StickyRectangleConnector
public class ChopRectangleConnector extends AbstractConnector
AConnectorwhich locates a connection point at the bounds of any figure which has a rectangular shape, such asRectangleFigure.- See Also:
Connector, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ChopRectangleConnector()Creates a new instance.ChopRectangleConnector(Figure owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.Point2D.DoublefindEnd(ConnectionFigure connection)Finds the end point for the connection.java.awt.geom.Point2D.DoublefindStart(ConnectionFigure connection)Finds the start point for the connection.-
Methods inherited from class org.jhotdraw.draw.connector.AbstractConnector
clone, contains, draw, getAnchor, getBounds, getDrawingArea, getOwner, isConnectToDecorator, read, setConnectToDecorator, updateAnchor, updateEndLocation, updateStartLocation, write
-
-
-
-
Constructor Detail
-
ChopRectangleConnector
public ChopRectangleConnector()
Creates a new instance. Only used for storable.
-
ChopRectangleConnector
public ChopRectangleConnector(Figure owner)
-
-
Method Detail
-
findStart
public java.awt.geom.Point2D.Double findStart(ConnectionFigure connection)
Description copied from interface:ConnectorFinds the start point for the connection.- Specified by:
findStartin interfaceConnector- Overrides:
findStartin classAbstractConnector
-
findEnd
public java.awt.geom.Point2D.Double findEnd(ConnectionFigure connection)
Description copied from interface:ConnectorFinds the end point for the connection.- Specified by:
findEndin interfaceConnector- Overrides:
findEndin classAbstractConnector
-
-
DataMelt 3.0 © DataMelt by jWork.ORG