All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.AbstractConnector
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractConnector
- public abstract class AbstractConnector
- extends Object
- implements Connector
AbstractConnector provides default implementation for
the Connector interface.
- See Also:
- Connector
-
AbstractConnector()
- Constructs a connector that has no owner.
-
AbstractConnector(Figure)
- Constructs a connector with the given owner figure.
-
containsPoint(int, int)
- Tests if a point is contained in the connector.
-
displayBox()
- Gets the display box of the connector.
-
draw(Graphics)
- Draws this connector.
-
findEnd(ConnectionFigure)
-
-
findPoint(ConnectionFigure)
- Gets the connection point.
-
findStart(ConnectionFigure)
-
-
owner()
- Gets the connector's owner.
-
read(StorableInput)
- Reads the connector and its owner from a StorableInput.
-
write(StorableOutput)
- Stores the connector and its owner to a StorableOutput.
AbstractConnector
public AbstractConnector()
- Constructs a connector that has no owner. It is only
used internally to resurrect a connectors from a
StorableOutput. It should never be called directly.
AbstractConnector
public AbstractConnector(Figure owner)
- Constructs a connector with the given owner figure.
owner
public Figure owner()
- Gets the connector's owner.
findStart
public Point findStart(ConnectionFigure connection)
findEnd
public Point findEnd(ConnectionFigure connection)
findPoint
protected Point findPoint(ConnectionFigure connection)
- Gets the connection point. Override when the connector
does not need to distinguish between the start and end
point of a connection.
displayBox
public Rectangle displayBox()
- Gets the display box of the connector.
containsPoint
public boolean containsPoint(int x,
int y)
- Tests if a point is contained in the connector.
draw
public void draw(Graphics g)
- Draws this connector. By default connectors are invisible.
write
public void write(StorableOutput dw)
- Stores the connector and its owner to a StorableOutput.
read
public void read(StorableInput dr) throws IOException
- Reads the connector and its owner from a StorableInput.
All Packages Class Hierarchy This Package Previous Next Index