|
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
org.jhotdraw.draw.StickyChopConnector
public class StickyChopConnector
A StickyChopConnector locates connection Points by choping the connection between the centers of the two figures at the display box. The location of the connection Point2D.Double is computed once, when the user connects the figure. Moving the figure around will not change the location.
| Constructor Summary | |
|---|---|
StickyChopConnector()
Creates a new instance. |
|
StickyChopConnector(Figure owner,
java.awt.geom.Point2D.Double p)
|
|
| Method Summary | |
|---|---|
protected java.awt.geom.Point2D.Double |
chop(Figure target,
java.awt.geom.Point2D.Double from)
|
void |
draw(java.awt.Graphics2D g)
Draws this connector. |
java.awt.geom.Point2D.Double |
getAnchor()
Gets the anchor of the connector. |
double |
getAngle()
|
java.lang.String |
getParameters()
|
void |
read(DOMInput in)
|
void |
setAngle(float angle)
|
void |
updateAnchor(java.awt.geom.Point2D.Double p)
Updates the anchor of the connector. |
void |
write(DOMOutput out)
|
| Methods inherited from class org.jhotdraw.draw.ChopBoxConnector |
|---|
findEnd, findStart |
| Methods inherited from class org.jhotdraw.draw.AbstractConnector |
|---|
clone, contains, findPoint, getBounds, getConnectorTarget, getOwner, isConnectToDecorator, isVisible, setConnectToDecorator, setOwner, setVisible, updateEndLocation, updateStartLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StickyChopConnector()
public StickyChopConnector(Figure owner,
java.awt.geom.Point2D.Double p)
| Method Detail |
|---|
public void draw(java.awt.Graphics2D g)
AbstractConnector
draw in interface Connectordraw in class AbstractConnectorpublic void setAngle(float angle)
public double getAngle()
public void updateAnchor(java.awt.geom.Point2D.Double p)
Connector
updateAnchor in interface ConnectorupdateAnchor in class AbstractConnectorpublic java.awt.geom.Point2D.Double getAnchor()
Connector
getAnchor in interface ConnectorgetAnchor in class AbstractConnector
protected java.awt.geom.Point2D.Double chop(Figure target,
java.awt.geom.Point2D.Double from)
chop in class ChopBoxConnectorpublic java.lang.String getParameters()
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorableread in class AbstractConnectorjava.io.IOException
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablewrite in class AbstractConnectorjava.io.IOException
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||