|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.draw.connector.AbstractConnector org.jhotdraw.draw.connector.ChopRectangleConnector
public class ChopRectangleConnector
A Connector
which locates a connection point at the bounds
of any figure which has a rectangular shape, such as RectangleFigure
.
Connector
,
Serialized FormConstructor Summary | |
---|---|
ChopRectangleConnector()
Creates a new instance. |
|
ChopRectangleConnector(Figure owner)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.jhotdraw.draw.connector.AbstractConnector |
---|
clone, contains, draw, findPoint, getAnchor, getBounds, getConnectorTarget, getDrawingArea, getOwner, isConnectToDecorator, read, setConnectToDecorator, setOwner, updateAnchor, updateEndLocation, updateStartLocation, write |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChopRectangleConnector()
public ChopRectangleConnector(Figure owner)
Method Detail |
---|
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)
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |