|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.AbstractConnector
org.jhotdraw.draw.ChopRectangleConnector
public class ChopRectangleConnector
A ChopRectangleConnector locates connection points by choping the connection between the centers of the two figures at the display box.
XXX - Replace all Chop...Connectors by a single ChopToCenterConnector and move method chop(Point2D.Double) into Figure interface.
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.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-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |