|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractConnector
org.jhotdraw.standard.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 FormField Summary | |
---|---|
static int |
SIZE
The standard size of the connector. |
Constructor Summary | |
---|---|
LocatorConnector()
|
|
LocatorConnector(Figure owner,
Locator l)
|
Method Summary | |
---|---|
boolean |
containsPoint(int x,
int y)
Tests if a point is contained in the connector. |
java.awt.Rectangle |
displayBox()
Gets the display box of the connector. |
void |
draw(java.awt.Graphics g)
Draws this connector. |
Locator |
getLocator()
|
void |
read(StorableInput dr)
Reads the arrow tip from a StorableInput. |
void |
write(StorableOutput dw)
Stores the arrow tip to a StorableOutput. |
Methods inherited from class org.jhotdraw.standard.AbstractConnector |
---|
connectorVisibility, findEnd, findStart, owner |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIZE
Constructor Detail |
---|
public LocatorConnector()
public LocatorConnector(Figure owner, Locator l)
Method Detail |
---|
public boolean containsPoint(int x, int y)
containsPoint
in interface Connector
containsPoint
in class AbstractConnector
public java.awt.Rectangle displayBox()
displayBox
in interface Connector
displayBox
in class AbstractConnector
public void draw(java.awt.Graphics g)
draw
in interface Connector
draw
in class AbstractConnector
public void write(StorableOutput dw)
write
in interface Storable
write
in class AbstractConnector
public void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
read
in class AbstractConnector
java.io.IOException
public Locator getLocator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |