Package com.alexmerz.graphviz.objects
Class PortNode
- java.lang.Object
-
- com.alexmerz.graphviz.objects.PortNode
-
public class PortNode extends Object
This class is an extended Node object containing Port information of a node in an edge. A PortNode does not hold an Id object, because it is only a wrapper for a node as a part of an edge.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetNode()Returns the nodeStringgetPort()Returns the port of the nodevoidsetNode(Node node)Sets the nodevoidsetPort(String port)Sets the port of the nodeStringtoString()Returns the String representation
-
-
-
Constructor Detail
-
PortNode
public PortNode()
Creates an empty PortNode object
-
PortNode
public PortNode(Node n)
Creates a PortNode with a given Node and empty port- Parameters:
n- the node object
-
-
Method Detail
-
getPort
public String getPort()
Returns the port of the node- Returns:
- the port
-
setPort
public void setPort(String port)
Sets the port of the node- Parameters:
port-
-
getNode
public Node getNode()
Returns the node- Returns:
- the node object
-
setNode
public void setNode(Node node)
Sets the node- Parameters:
node-
-
-