public class LocatorConnector extends AbstractConnector
Locator
,
Connector
,
Serialized FormModifier 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, updateStartLocation
public 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 Connector
contains
in class AbstractConnector
public java.awt.geom.Rectangle2D.Double getBounds()
getBounds
in interface Connector
getBounds
in class AbstractConnector
public void read(DOMInput in) throws java.io.IOException
read
in interface DOMStorable
read
in class AbstractConnector
java.io.IOException
public void write(DOMOutput out) throws java.io.IOException
write
in interface DOMStorable
write
in class AbstractConnector
java.io.IOException