|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klodd.hierarchical.structures.LayerConnection
public class LayerConnection
Connection between two layer elements in a layered graph.
Constructor Summary | |
---|---|
LayerConnection(KEdge theedge,
LayerElement sourceElem,
KPort thesourcePort,
LayerElement targetElem,
KPort thetargetPort)
Creates a layer connection with given source and target. |
Method Summary | |
---|---|
void |
applyLayout(KPoint offset,
KInsets insets)
Applies the layout of this layer connection to the contained edge. |
float |
calcSourcePos(float minDist)
Determines the source position of this edge from the current layout position. |
float |
calcTargetPos(float minDist)
Determines the target position of this edge from the current layout position. |
List<KPoint> |
getBendPoints()
Returns the bend points. |
float |
getSourceAnchorPos()
Returns the source anchor position. |
int |
getSourceBackPos()
Returns the source back position. |
LayerElement |
getSourceElement()
Gets the source element. |
KPort |
getSourcePort()
Gets the source port. |
int |
getSourceSidePos()
Returns the source side position. |
float |
getTargetAnchorPos()
Returns the target anchor position. |
LayerElement |
getTargetElement()
Gets the target element. |
int |
getTargetFrontPos()
Returns the target front position. |
KPort |
getTargetPort()
Gets the target port. |
int |
getTargetSidePos()
Returns the target side position. |
void |
setSourceBackPos(int thesourceBackPos)
Sets the source back position. |
void |
setSourceSidePos(int thesourceSidePos)
Sets the source side position. |
void |
setTargetFrontPos(int thetargetFrontPos)
Sets the target front position. |
void |
setTargetSidePos(int thetargetSidePos)
Sets the target side position. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LayerConnection(KEdge theedge, LayerElement sourceElem, KPort thesourcePort, LayerElement targetElem, KPort thetargetPort)
theedge
- the edge that is to be contained in this layer connectionsourceElem
- the source elementthesourcePort
- the source porttargetElem
- the target elementthetargetPort
- the target portMethod Detail |
---|
public String toString()
toString
in class Object
public void applyLayout(KPoint offset, KInsets insets)
offset
- offset to be added to each bend pointinsets
- insets of the containing parent layout nodepublic LayerElement getSourceElement()
public KPort getSourcePort()
public LayerElement getTargetElement()
public KPort getTargetPort()
public float calcSourcePos(float minDist)
minDist
- minimal distance between elements
public float calcTargetPos(float minDist)
minDist
- minimal distance between elements
public void setSourceSidePos(int thesourceSidePos)
thesourceSidePos
- the source side position to setpublic int getSourceSidePos()
public void setTargetSidePos(int thetargetSidePos)
thetargetSidePos
- the target side position to setpublic int getTargetSidePos()
public void setSourceBackPos(int thesourceBackPos)
thesourceBackPos
- the source back position to setpublic int getSourceBackPos()
public void setTargetFrontPos(int thetargetFrontPos)
thetargetFrontPos
- the target front position to setpublic int getTargetFrontPos()
public float getSourceAnchorPos()
public float getTargetAnchorPos()
public List<KPoint> getBendPoints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |