public class NodeImpl extends IdentifiableElementImpl implements Node
| Modifier and Type | Field and Description |
|---|---|
protected Graph |
graph
container graph
|
delegate, 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_WithoutRemoving(Graph graph)
Same as
basicSetGraph(Graph) but does not remove this node from
old graph, if it was not equal to the passed graph. |
protected void |
basicSetGraph(Graph graph)
This is an internally used method.
|
protected 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, sizeLabelsprotected Graph graph
public NodeImpl()
Node.public NodeImpl(Node delegate)
Node. If LabelableElementImpl.delegate is not
null, all functions of this method are delegated to the delegate object.
Setting LabelableElementImpl.delegate makes this object to a container.a - delegate object of the same type.protected Node getDelegate()
LabelableElementImpl.delegate is not null, all
functions of this method are delegated to the delegate object. Setting
LabelableElementImpl.delegate makes this object to a container.getDelegate in class IdentifiableElementImplpublic 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
split 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 nodeprotected void basicSetGraph_WithoutRemoving(Graph graph)
basicSetGraph(Graph) but does not remove this node from
old graph, if it was not equal to the passed graph.graph - public 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–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.