CH.ifa.draw.standard
Class 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, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEThe standard size of the connector.
-
Constructor Summary
Constructors Constructor and Description LocatorConnector()LocatorConnector(Figure owner, Locator l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontainsPoint(int x, int y)Tests if a point is contained in the connector.java.awt.RectangledisplayBox()Gets the display box of the connector.voiddraw(java.awt.Graphics g)Draws this connector.voidread(StorableInput dr)Reads the arrow tip from a StorableInput.voidwrite(StorableOutput dw)Stores the arrow tip to a StorableOutput.-
Methods inherited from class CH.ifa.draw.standard.AbstractConnector
findEnd, findStart, owner
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
The standard size of the connector. The display box is centered around the located point.- See Also:
- Constant Field Values
-
-
Method Detail
-
containsPoint
public boolean containsPoint(int x, int y)Tests if a point is contained in the connector.- Specified by:
containsPointin interfaceConnector- Overrides:
containsPointin classAbstractConnector
-
displayBox
public java.awt.Rectangle displayBox()
Gets the display box of the connector.- Specified by:
displayBoxin interfaceConnector- Overrides:
displayBoxin classAbstractConnector
-
draw
public void draw(java.awt.Graphics g)
Draws this connector.- Specified by:
drawin interfaceConnector- Overrides:
drawin classAbstractConnector
-
write
public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classAbstractConnector
-
read
public void read(StorableInput dr) throws java.io.IOException
Reads the arrow tip from a StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classAbstractConnector- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG