Package com.alexmerz.graphviz.objects
Class PortNode
java.lang.Object
com.alexmerz.graphviz.objects.PortNode
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.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PortNode
public PortNode()Creates an empty PortNode object -
PortNode
Creates a PortNode with a given Node and empty port- Parameters:
n- the node object
-
PortNode
Creates a PortNode with the given Node and Port- Parameters:
n- the node objectport- the port
-
-
Method Details
-
getPort
Returns the port of the node- Returns:
- the port
-
setPort
Sets the port of the node- Parameters:
port-
-
getNode
Returns the node- Returns:
- the node object
-
setNode
Sets the node- Parameters:
node-
-
toString
Returns the String representation
-