|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.AbstractConnector
public abstract class AbstractConnector
AbstractConnector provides default implementation for the Connector interface.
Connector
,
Serialized FormConstructor Summary | |
---|---|
AbstractConnector()
Constructs a connector that has no owner. |
|
AbstractConnector(Figure owner)
Constructs a connector with the given owner figure. |
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. |
java.awt.Point |
findEnd(ConnectionFigure connection)
Finds the end point for the connection. |
protected java.awt.Point |
findPoint(ConnectionFigure connection)
Gets the connection point. |
java.awt.Point |
findStart(ConnectionFigure connection)
Finds the start point for the connection. |
Figure |
owner()
Gets the connector's owner. |
void |
read(StorableInput dr)
Reads the connector and its owner from a StorableInput. |
void |
write(StorableOutput dw)
Stores the connector and its owner to a StorableOutput. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConnector()
public AbstractConnector(Figure owner)
Method Detail |
---|
public Figure owner()
owner
in interface Connector
public java.awt.Point findStart(ConnectionFigure connection)
Connector
findStart
in interface Connector
public java.awt.Point findEnd(ConnectionFigure connection)
Connector
findEnd
in interface Connector
protected java.awt.Point findPoint(ConnectionFigure connection)
public java.awt.Rectangle displayBox()
displayBox
in interface Connector
public boolean containsPoint(int x, int y)
containsPoint
in interface Connector
public void draw(java.awt.Graphics g)
draw
in interface Connector
public void write(StorableOutput dw)
write
in interface Storable
public void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |