|
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
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 the 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 bounds of the connector. |
protected Figure |
getConnectorTarget(Figure f)
|
java.awt.geom.Rectangle2D.Double |
getDrawingArea()
Gets the drawing area of the connector. |
Figure |
getOwner()
Gets the connector's owner. |
boolean |
isConnectToDecorator()
|
void |
read(DOMInput in)
|
void |
setConnectToDecorator(boolean newValue)
|
protected void |
setOwner(Figure newValue)
Sets the connector's owner. |
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()
protected final Figure getConnectorTarget(Figure f)
public boolean contains(java.awt.geom.Point2D.Double p)
contains 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 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 Connectorpublic java.awt.geom.Rectangle2D.Double getBounds()
Connector
getBounds 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.IOExceptionpublic java.awt.geom.Rectangle2D.Double getDrawingArea()
Connector
getDrawingArea in interface Connectorpublic void draw(java.awt.Graphics2D g)
Connector
draw in interface Connector
|
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 | ||||||||