|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alexmerz.graphviz.objects.PortNode
public class 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 | |
---|---|
PortNode()
Creates an empty PortNode object |
|
PortNode(Node n)
Creates a PortNode with a given Node and empty port |
|
PortNode(Node n,
java.lang.String port)
Creates a PortNode with the given Node and Port |
Method Summary | |
---|---|
Node |
getNode()
Returns the node |
java.lang.String |
getPort()
Returns the port of the node |
void |
setNode(Node node)
Sets the node |
void |
setPort(java.lang.String port)
Sets the port of the node |
java.lang.String |
toString()
Returns the String representation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortNode()
public PortNode(Node n)
n
- the node objectpublic PortNode(Node n, java.lang.String port)
n
- the node objectport
- the portMethod Detail |
---|
public java.lang.String getPort()
public void setPort(java.lang.String port)
port
- public Node getNode()
public void setNode(Node node)
node
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |