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.
  • Constructor Details

    • 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
    • PortNode

      public PortNode(Node n, String port)
      Creates a PortNode with the given Node and Port
      Parameters:
      n - the node object
      port - the port
  • Method Details

    • 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 -
    • toString

      public String toString()
      Returns the String representation
      Overrides:
      toString in class Object
      Returns:
      the string representation