|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.draw2d.RelativeBendpoint
A Bendpoint that calculates its location based on its
distance from the start and end points of the Connection,
as well as its weight.
| Constructor Summary | |
RelativeBendpoint()
Creates a new RelativeBendpoint. |
|
RelativeBendpoint(Connection conn)
Creates a new RelativeBendpoint and associates it with the given Connection. |
|
| Method Summary | |
protected Connection |
getConnection()
Returns the Connection this bendpoint is associated with. |
Point |
getLocation()
Calculates and returns this bendpoint's new location. |
void |
setConnection(Connection conn)
Sets the Connection this bendpoint should be associated with. |
void |
setRelativeDimensions(Dimension dim1,
Dimension dim2)
Sets the dimensions representing the x and y distances this bendpoint is from the start and end points of the connection. |
void |
setWeight(float w)
Sets the weight this bendpoint should use to calculate its location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RelativeBendpoint()
public RelativeBendpoint(Connection conn)
| Method Detail |
protected Connection getConnection()
public Point getLocation()
getLocation in interface Bendpointpublic void setConnection(Connection conn)
public void setRelativeDimensions(Dimension dim1,
Dimension dim2)
public void setWeight(float w)
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||