|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.properties.MapPropertyHolder
de.cau.cs.kieler.klay.layered.graph.LGraphElement
de.cau.cs.kieler.klay.layered.graph.LEdge
public class LEdge
An edge in a layered graph. Edges may only be connected to ports of a node, which represent the point where the edge touches the node.
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement |
---|
id |
Constructor Summary | |
---|---|
LEdge()
|
Method Summary | |
---|---|
KVectorChain |
getBendPoints()
Returns the list of bend points, which is initially empty. |
List<LLabel> |
getLabels()
|
LPort |
getSource()
Returns the source port. |
KVector |
getSourcePoint()
Return a new vector representing the source point of the edge, which has the same reference point as the bend points. |
LPort |
getTarget()
Returns the target port. |
KVector |
getTargetPoint()
Return a new vector representing the target point of the edge, which has the same reference point as the bend points. |
void |
reverse(boolean adaptPorts)
Reverses the edge, including its bend points. |
void |
setSource(LPort source)
Sets the source port of this edge and adds itself to the port's list of edges. |
void |
setTarget(LPort target)
Sets the target port of this edge and adds itself to the port's list of edges. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement |
---|
compareTo |
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder |
---|
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LEdge()
Method Detail |
---|
public String toString()
toString
in class Object
public void reverse(boolean adaptPorts)
REVERSED
property. (an
edge that was marked as being reversed is then unmarked, and the other way around) This
does not change any properties on the connected ports.
adaptPorts
- If true and a connected port is a collector port (a port used to merge edges),
the corresponding opposite port is used instead of the original one.public LPort getSource()
public void setSource(LPort source)
ConcurrentModificationException
s.
source
- the source port to setpublic LPort getTarget()
public void setTarget(LPort target)
ConcurrentModificationException
s.
target
- the target port to setpublic KVectorChain getBendPoints()
public KVector getSourcePoint()
public KVector getTargetPoint()
public List<LLabel> getLabels()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |