|
JHotDraw 7.0.6 | |||||||||
| 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.ChopBoxConnector
public class ChopBoxConnector
A ChopBoxConnector 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 Form| Constructor Summary | |
|---|---|
ChopBoxConnector()
Creates a new instance. |
|
ChopBoxConnector(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, getOwner, isConnectToDecorator, isVisible, read, setConnectToDecorator, setOwner, setVisible, updateAnchor, updateEndLocation, updateStartLocation, write |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChopBoxConnector()
public ChopBoxConnector(Figure owner)
| Method Detail |
|---|
public java.awt.geom.Point2D.Double findStart(ConnectionFigure connection)
Connector
findStart in interface ConnectorfindStart in class AbstractConnectorpublic java.awt.geom.Point2D.Double findEnd(ConnectionFigure connection)
Connector
findEnd in interface ConnectorfindEnd in class AbstractConnector
protected java.awt.geom.Point2D.Double chop(Figure target,
java.awt.geom.Point2D.Double from)
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||