|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.draw.connector.AbstractConnector
org.jhotdraw.draw.connector.LocatorConnector
public class LocatorConnector
A LocatorConnector locates connection points with the help of a Locator. It supports the definition of connection points to semantic locations.
Locator,
Connector,
Serialized Form| Field Summary | |
|---|---|
static int |
SIZE
The standard size of the connector. |
| Constructor Summary | |
|---|---|
LocatorConnector()
Creates a new instance. |
|
LocatorConnector(Figure owner,
Locator l)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.jhotdraw.draw.connector.AbstractConnector |
|---|
clone, draw, findEnd, findPoint, findStart, getAnchor, getConnectorTarget, getDrawingArea, getOwner, isConnectToDecorator, setConnectToDecorator, setOwner, updateAnchor, updateEndLocation, updateStartLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
FIXME - Why do we need a standard size?
| Constructor Detail |
|---|
public LocatorConnector()
public LocatorConnector(Figure owner,
Locator l)
| Method Detail |
|---|
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 AbstractConnector
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-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||