|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.powerml.structures.shapes.connectors.ConnectorBendPoint
Defines a position a connector is bent at, relative to the last connector point (i.e. the last bend point, or in case of the first bend point, the start point of the connector).
| Method Summary | |
void |
addXml(org.dom4j.Element parent,
int roundPrecision)
Transforms current instance to XML and adds it to a parent element. |
double |
getPosition()
Returns the position of the bend point relative to the vertical/horizontal component of the distance vector between start and end point of the connector (depending on the result of isVertical()). (0
means start point, 1 means end point of the connector) |
boolean |
isVertical()
Checks if the connection segment entering the bend point is vertical or not. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void addXml(org.dom4j.Element parent,
int roundPrecision)
parent - parent elementroundPrecision - rounding precisionpublic double getPosition()
isVertical()). (0
means start point, 1 means end point of the connector)
public boolean isVertical()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||