|
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
public class AbstractConnector
AbstractConnector provides default implementation for the Connector interface.
Connector,
Serialized Form| Constructor Summary | |
|---|---|
AbstractConnector()
Constructs a connector that has no owner. |
|
AbstractConnector(Figure owner)
Constructs a connector with the given owner figure. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of the Connection. |
boolean |
contains(java.awt.geom.Point2D.Double p)
Tests if a point is contained in the connector. |
void |
draw(java.awt.Graphics2D g)
Draws this connector. |
java.awt.geom.Point2D.Double |
findEnd(ConnectionFigure connection)
Finds the end point for the connection. |
protected java.awt.geom.Point2D.Double |
findPoint(ConnectionFigure connection)
Gets the connection point. |
java.awt.geom.Point2D.Double |
findStart(ConnectionFigure connection)
Finds the start point for the connection. |
java.awt.geom.Point2D.Double |
getAnchor()
Gets the anchor of the connector. |
java.awt.geom.Rectangle2D.Double |
getBounds()
Gets the display box of the connector. |
protected Figure |
getConnectorTarget(Figure f)
|
Figure |
getOwner()
Gets the connector's owner. |
boolean |
isConnectToDecorator()
|
boolean |
isVisible()
|
void |
read(DOMInput in)
|
void |
setConnectToDecorator(boolean newValue)
|
protected void |
setOwner(Figure newValue)
Sets the connector's owner. |
void |
setVisible(boolean newValue)
|
void |
updateAnchor(java.awt.geom.Point2D.Double p)
Updates the anchor of the connector. |
void |
updateEndLocation(java.awt.geom.Point2D.Double p)
This is called, when the end location of the connection has been moved by the user. |
void |
updateStartLocation(java.awt.geom.Point2D.Double p)
This is called, when the start location of the connection has been moved by the user. |
void |
write(DOMOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnector()
public AbstractConnector(Figure owner)
| Method Detail |
|---|
public void setConnectToDecorator(boolean newValue)
public boolean isConnectToDecorator()
public void setVisible(boolean newValue)
public boolean isVisible()
protected final Figure getConnectorTarget(Figure f)
public boolean contains(java.awt.geom.Point2D.Double p)
contains in interface Connectorpublic void draw(java.awt.Graphics2D g)
draw in interface Connectorpublic java.awt.geom.Point2D.Double findStart(ConnectionFigure connection)
Connector
findStart in interface Connectorpublic java.awt.geom.Point2D.Double findEnd(ConnectionFigure connection)
Connector
findEnd in interface Connectorprotected java.awt.geom.Point2D.Double findPoint(ConnectionFigure connection)
public java.awt.geom.Rectangle2D.Double getBounds()
Connector
getBounds in interface Connectorpublic Figure getOwner()
getOwner in interface Connectorprotected void setOwner(Figure newValue)
public java.lang.Object clone()
Connector
clone in interface Connectorclone in class java.lang.Objectpublic void updateStartLocation(java.awt.geom.Point2D.Double p)
public void updateEndLocation(java.awt.geom.Point2D.Double p)
public java.awt.geom.Point2D.Double getAnchor()
Connector
getAnchor in interface Connectorpublic void updateAnchor(java.awt.geom.Point2D.Double p)
Connector
updateAnchor in interface Connector
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorablejava.io.IOException
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablejava.io.IOException
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||