public class LocatorConnector extends AbstractConnector
Locator,
Connector,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
The standard size of the connector.
|
| Constructor and Description |
|---|
LocatorConnector()
Creates a new instance.
|
LocatorConnector(Figure owner,
Locator l) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.awt.geom.Point2D.Double p)
Tests if a point is contained in the connector.
|
java.awt.geom.Rectangle2D.Double |
getBounds()
Gets the display box of the connector.
|
Locator |
getLocator() |
protected java.awt.geom.Point2D.Double |
locate(ConnectionFigure connection) |
void |
read(DOMInput in) |
void |
write(DOMOutput out) |
clone, draw, findEnd, findPoint, findStart, getAnchor, getConnectorTarget, getDrawingArea, getOwner, isConnectToDecorator, setConnectToDecorator, setOwner, updateAnchor, updateEndLocation, updateStartLocationpublic static final int SIZE
FIXME - Why do we need a standard size?
public LocatorConnector()
public Locator getLocator()
protected java.awt.geom.Point2D.Double locate(ConnectionFigure connection)
public boolean contains(java.awt.geom.Point2D.Double p)
contains in interface Connectorcontains in class AbstractConnectorpublic java.awt.geom.Rectangle2D.Double getBounds()
getBounds in interface ConnectorgetBounds in class AbstractConnectorpublic void read(DOMInput in) throws java.io.IOException
read in interface DOMStorableread in class AbstractConnectorjava.io.IOExceptionpublic void write(DOMOutput out) throws java.io.IOException
write in interface DOMStorablewrite in class AbstractConnectorjava.io.IOException