public class NodeImpl extends IdentifiableElementImpl implements Node
| Modifier and Type | Field and Description |
|---|---|
protected Node |
delegate
A delegate object of the same type.
|
protected Graph |
graph
container graph
|
EXPECTED_NUMBER_OF_LABELS| Constructor and Description |
|---|
NodeImpl()
Initializes an object of type
Node. |
NodeImpl(Node delegate)
Initializes an object of type
Node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayer(Layer layer)
Adds this node to the passed layer.
|
protected void |
basicSetGraph(Graph graph)
This is an internally used method.
|
Node |
getDelegate()
Returns the delegate object.
|
Graph |
getGraph()
Returns the container graph of this node.
|
Set<? extends Layer> |
getLayers()
Returns all layers containing this node.
|
void |
removeLayer(Layer layer)
Removes this node from the passed layer.
|
void |
setGraph(Graph graph)
Sets the container graph of this node.
|
getId, getIdentifier, removeLabel, setId, setIdentifier, toStringaddLabel, basicAddLabel, basicRemoveLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, sizeLabelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, getIdentifier, setId, setIdentifieraddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelspublic NodeImpl()
Node.public Node getDelegate()
delegate is not null, all
functions of this method are delegated to the delegate object. Setting
delegate makes this object to a container.public Graph getGraph()
public void setGraph(Graph graph)
Graph.getNodes()
will return a list containing this node.protected void basicSetGraph(Graph graph)
Graph and Node object when an node is inserted into this
graph and to avoid an endless invocation the insertion of an node is
splited into the two methods setGraph(Graph) and
basicSetGraph(Graph). The invocation of methods is implement as
follows:
That means methodGraph.addNode(Node)Node.setGraph(Graph)|| \ / || || X || \/ / \ \/Graph#basicAddNode(Node)Node#basicSetGraph(Graph)
setGraph(Graph) calls
basicSetGraph(Graph) and Graph#basicAddNode(Node). And
method setGraph(Graph) calls Graph#basicAddNode(Node)
and Node#basicSetGraph(Graph).graph - graph which contains this nodepublic Set<? extends Layer> getLayers()
public void addLayer(Layer layer)
getLayers() retrieves all layers by accessing
the layers in graph, this class does not contain an own collection of
layers.public void removeLayer(Layer layer)
getLayers() retrieves all layers by accessing
the layers in graph, this class does not contain an own collection of
layers.removeLayer in interface Nodelayer - from which this node should be removedCopyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.