public final class GraphNodes extends Object
Modifier and Type | Method and Description |
---|---|
void |
addAll(GraphNodes graph)
Adds all of a graph's nodes to the current graph.
|
void |
addAll(Map<GraphNode,DisplaySpec> nodes)
Adds a collections of nodes to the current graph.
|
void |
addNode(GraphNode nodeRecord)
Adds a specified
GraphNode to the graph without any value. |
void |
addNode(GraphNode nodeRecord,
DisplaySpec customLayout)
Adds a specified
GraphNode to the graph with value of GraphCustomization. |
void |
addRoot(GraphNode nodeRecord)
Adds a node to the current root node.
|
void |
clear() |
boolean |
contains(com.onwbp.adaptation.Adaptation record)
Checks whether the current graph includes a record.
|
boolean |
contains(GraphNode aNode)
Checks whether the current graph includes a node.
|
GraphNode |
get(com.onwbp.adaptation.Adaptation record)
Gets a
GraphNode object in the current graph. |
GraphNode |
get(GraphNode graphNode)
Gets a
GraphNode object in the current graph. |
DisplaySpec |
getDisplaySpec(GraphNode node)
Gets node label and layout settings.
|
Set<GraphNode> |
getRootNodes() |
boolean |
isEmpty()
Checks whether current graph contains nodes.
|
Iterator<Map.Entry<GraphNode,DisplaySpec>> |
iterator()
Returns an iterator that corresponds to all nodes and their values.
|
Iterator<GraphNode> |
keyIterator()
Returns an iterator that corresponds to all nodes.
|
int |
size() |
int |
sizeOfRoot() |
public void addNode(GraphNode nodeRecord)
GraphNode
to the graph without any value.public void addNode(GraphNode nodeRecord, DisplaySpec customLayout)
GraphNode
to the graph with value of GraphCustomization.public GraphNode get(com.onwbp.adaptation.Adaptation record)
GraphNode
object in the current graph.public Iterator<Map.Entry<GraphNode,DisplaySpec>> iterator()
public boolean contains(GraphNode aNode)
public boolean contains(com.onwbp.adaptation.Adaptation record)
public void addAll(Map<GraphNode,DisplaySpec> nodes)
public void clear()
public int size()
public int sizeOfRoot()
public void addAll(GraphNodes graph)
public Iterator<GraphNode> keyIterator()
public boolean isEmpty()
public void addRoot(GraphNode nodeRecord)
public DisplaySpec getDisplaySpec(GraphNode node)