|
||||||||||
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.slimgraph.KSlimGraphElement
de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimEdge
public class KSlimEdge
An edge in the slim graph structure.
Nested Class Summary | |
---|---|
static class |
KSlimEdge.Bend
Definition of an edge bend for orthogonal drawing. |
Constructor Summary | |
---|---|
KSlimEdge(KSlimGraph graph,
KSlimNode thesource,
KSlimNode thetarget)
Creates an edge connecting two existing nodes. |
|
KSlimEdge(KSlimGraph graph,
KSlimNode thesource,
KSlimNode thetarget,
Object theobj)
Creates an edge connecting two existing nodes, with an object to be contained. |
Method Summary | |
---|---|
void |
connectNodes()
Connects this edge with the source and target. |
void |
connectNodes(int sourceRank,
int targetRank,
boolean forwardSelfLoop)
Connects this edge with the source and target with given ranks. |
void |
connectNodes(KSlimNode.Side thesourceSide,
KSlimNode.Side thetargetSide)
Connects this edge with the source and target respecting the order of incidence according to the given node sides. |
List<KSlimEdge.Bend> |
getBends()
Returns the bends. |
KSlimFace |
getLeftFace()
Returns the left face. |
KSlimFace |
getRightFace()
Returns the rightFace. |
KSlimNode |
getSource()
Returns the source. |
KSlimNode.Side |
getSourceSide()
Returns the source side. |
KSlimNode |
getTarget()
Returns the target. |
KSlimNode.Side |
getTargetSide()
Returns the target side. |
void |
setLeftFace(KSlimFace theleftFace)
Sets the leftFace. |
void |
setRightFace(KSlimFace therightFace)
Sets the right face. |
void |
setSource(KSlimNode thesource)
Sets the source. |
void |
setSourceSide(KSlimNode.Side thesourceSide)
Sets the source side. |
void |
setTarget(KSlimNode thetarget)
Sets the target. |
void |
setTargetSide(KSlimNode.Side thetargetSide)
Sets the target side. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.klodd.hierarchical.structures.slimgraph.KSlimGraphElement |
---|
compareTo, equals, getId, getObject, getRank, hashCode, setId, setObject, setRank |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KSlimEdge(KSlimGraph graph, KSlimNode thesource, KSlimNode thetarget)
graph
- the graph to which the new edge shall be addedthesource
- source nodethetarget
- target nodepublic KSlimEdge(KSlimGraph graph, KSlimNode thesource, KSlimNode thetarget, Object theobj)
graph
- the graph to which the new edge shall be addedthesource
- source nodethetarget
- target nodetheobj
- object to be containedMethod Detail |
---|
public void connectNodes()
public void connectNodes(int sourceRank, int targetRank, boolean forwardSelfLoop)
sourceRank
- rank of the edge at sourcetargetRank
- rank of the edge at targetforwardSelfLoop
- for self-loops: is the target rank greater than
the source rank?public void connectNodes(KSlimNode.Side thesourceSide, KSlimNode.Side thetargetSide)
thesourceSide
- port side at the source nodethetargetSide
- port side at the target nodepublic String toString()
toString
in class KSlimGraphElement
public void setSource(KSlimNode thesource)
thesource
- the source to setpublic KSlimNode getSource()
public void setTarget(KSlimNode thetarget)
thetarget
- the target to setpublic KSlimNode getTarget()
public void setLeftFace(KSlimFace theleftFace)
theleftFace
- the leftFace to setpublic KSlimFace getLeftFace()
public void setRightFace(KSlimFace therightFace)
therightFace
- the right face to setpublic KSlimFace getRightFace()
public List<KSlimEdge.Bend> getBends()
public void setSourceSide(KSlimNode.Side thesourceSide)
thesourceSide
- the source side to setpublic KSlimNode.Side getSourceSide()
public void setTargetSide(KSlimNode.Side thetargetSide)
thetargetSide
- the target side to setpublic KSlimNode.Side getTargetSide()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |