All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.LocatorConnector

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractConnector
           |
           +----CH.ifa.draw.standard.LocatorConnector

public class LocatorConnector
extends AbstractConnector
A LocatorConnector locates connection points with the help of a Locator. It supports the definition of connection points to semantic locations.

See Also:
Locator, Connector

Variable Index

 o SIZE
The standard size of the connector.

Constructor Index

 o LocatorConnector()
 o LocatorConnector(Figure, Locator)

Method Index

 o containsPoint(int, int)
Tests if a point is contained in the connector.
 o displayBox()
Gets the display box of the connector.
 o draw(Graphics)
Draws this connector.
 o locate(ConnectionFigure)
 o read(StorableInput)
Reads the arrow tip from a StorableInput.
 o write(StorableOutput)
Stores the arrow tip to a StorableOutput.

Variables

 o SIZE
 public static final int SIZE
The standard size of the connector. The display box is centered around the located point.

Constructors

 o LocatorConnector
 public LocatorConnector()
 o LocatorConnector
 public LocatorConnector(Figure owner,
                         Locator l)

Methods

 o locate
 protected Point locate(ConnectionFigure connection)
 o containsPoint
 public boolean containsPoint(int x,
                              int y)
Tests if a point is contained in the connector.

Overrides:
containsPoint in class AbstractConnector
 o displayBox
 public Rectangle displayBox()
Gets the display box of the connector.

Overrides:
displayBox in class AbstractConnector
 o draw
 public void draw(Graphics g)
Draws this connector.

Overrides:
draw in class AbstractConnector
 o write
 public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.

Overrides:
write in class AbstractConnector
 o read
 public void read(StorableInput dr) throws IOException
Reads the arrow tip from a StorableInput.

Overrides:
read in class AbstractConnector

All Packages  Class Hierarchy  This Package  Previous  Next  Index