|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alexmerz.graphviz.objects.Node
public class Node
This class represents a node in a graph.
Constructor Summary | |
---|---|
Node()
|
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String key)
Returns the attribute of the node |
java.util.Hashtable<java.lang.String,java.lang.String> |
getAttributes()
Returns all attributes of the edge. |
Id |
getId()
Returns the id object for the node |
boolean |
isSubgraph()
Returns true, if the node object represents a subgraph. |
void |
representsSubgraph(boolean isSubgraph)
Sets, if the node represents a subgraph |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets the attribute of the node |
void |
setId(Id id)
Sets the Id object for this node |
java.lang.String |
toString()
Returns a string representation of this node |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Node()
Method Detail |
---|
public Id getId()
public void setId(Id id)
id
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAttribute(java.lang.String key)
key
- the name of the attribute
public void setAttribute(java.lang.String key, java.lang.String value)
key
- the name of the attributevalue
- the value of the attributepublic boolean isSubgraph()
public void representsSubgraph(boolean isSubgraph)
isSubgraph
- true if subgraph is used in
edge operationpublic java.util.Hashtable<java.lang.String,java.lang.String> getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |