|
||||||||||
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.LShape
de.cau.cs.kieler.klay.layered.graph.LPort
public class LPort
A port in a layered graph. The position of the port is relative to the upper left corner of the containing node. Contrary to the usual customs, a port's position denotes its center point, not its upper left corner. A port has only one list of incident edges; for input ports this list must only contain incoming edges, while for output ports it must only contain outgoing edges. Usually all ports are required to be either input ports or output ports.
Port must be used even if the original graph does not reveal them. In this case each edge has dedicated source and target ports, which are used to determine the points where the edge touches the source and target nodes.
Nested Class Summary | |
---|---|
static class |
LPort.SideCondition
A condition that checks the side of ports. |
static class |
LPort.TypeCondition
A condition that checks the type of ports. |
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement |
---|
id |
Constructor Summary | |
---|---|
LPort()
|
Method Summary | |
---|---|
Iterable<LEdge> |
getConnectedEdges()
Returns an iterable over all connected edges, both incoming and outgoing. |
Iterable<LPort> |
getConnectedPorts()
Returns an iterable over all connected ports, both predecessors and successors. |
int |
getDegree()
Returns this port's degree, that is, the number of edges connected to it. |
List<LEdge> |
getIncomingEdges()
Returns the list of edges going into this port. |
int |
getIndex()
Returns the index of the port in the containing node's list of ports. |
List<LLabel> |
getLabels()
Returns this port's labels. |
String |
getName()
Returns the name of the port. |
int |
getNetFlow()
Returns the number of incoming edges minus the number of outgoing edges. |
LNode |
getNode()
Returns the node that owns this port. |
List<LEdge> |
getOutgoingEdges()
Returns the list of edges going out of this port. |
Iterable<LPort> |
getPredecessorPorts()
Returns an iterable over all the port's predecessor ports. |
PortSide |
getSide()
Returns the node side on which the port is drawn. |
Iterable<LPort> |
getSuccessorPorts()
Returns an iterable over all the port's successor ports. |
void |
setNode(LNode node)
Sets the owning node and adds itself to the node's list of ports. |
void |
setSide(PortSide theside)
Sets the node side on which the port is drawn. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.klay.layered.graph.LShape |
---|
getPosition, getSize |
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 LPort()
Method Detail |
---|
public String toString()
toString
in class Object
public LNode getNode()
public void setNode(LNode node)
ConcurrentModificationException
s.
node
- the owner to setpublic PortSide getSide()
public void setSide(PortSide theside)
theside
- the side to setpublic List<LLabel> getLabels()
public String getName()
null
public int getDegree()
public int getNetFlow()
public List<LEdge> getIncomingEdges()
public List<LEdge> getOutgoingEdges()
public Iterable<LEdge> getConnectedEdges()
public Iterable<LPort> getPredecessorPorts()
public Iterable<LPort> getSuccessorPorts()
public Iterable<LPort> getConnectedPorts()
public int getIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |