Package org.eclipse.gef.graph
Class Graph
java.lang.Object
org.eclipse.gef.graph.Graph
- All Implemented Interfaces:
org.eclipse.gef.common.attributes.IAttributeStore
public final class Graph
extends Object
implements org.eclipse.gef.common.attributes.IAttributeStore
-
Property Summary
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TheGraph.Builder
can be used to construct a newGraph
little by little. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of theedgesProperty property
.static final String
The name of thenodes property
.Fields inherited from interface org.eclipse.gef.common.attributes.IAttributeStore
ATTRIBUTES_PROPERTY
-
Constructor Summary
ConstructorDescriptionGraph()
Default constructor, using empty collections for attributes, nodes, and edges.Graph
(Collection<? extends Node> nodes, Collection<? extends Edge> edges) Constructs a newGraph
from the given nodes, and edges but empty attributes.Graph
(Map<String, Object> attributes, Collection<? extends Node> nodes, Collection<? extends Edge> edges) Constructs a newGraph
from the given attributes, nodes, and edgesProperty. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyListProperty<Edge>
Gets the value of the property attributes.javafx.collections.ObservableList<Edge>
getEdges()
Returns the edgesProperty of thisGraph
.javafx.collections.ObservableList<Node>
getNodes()
Returns the nodes of this Graph.Returns the root graph of this Graph.javafx.beans.property.ReadOnlyListProperty<Node>
void
setNestingNode
(Node nestingNode) toString()
-
Property Details
-
attributes
- Specified by:
attributesProperty
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- See Also:
-
edges
- See Also:
-
nodes
- See Also:
-
-
Field Details
-
NODES_PROPERTY
The name of thenodes property
.- See Also:
-
EDGES_PROPERTY
The name of theedgesProperty property
.- See Also:
-
-
Constructor Details
-
Graph
public Graph()Default constructor, using empty collections for attributes, nodes, and edges. -
Graph
-
Graph
public Graph(Map<String, Object> attributes, Collection<? extends Node> nodes, Collection<? extends Edge> edges)
-
-
Method Details
-
attributesProperty
- Specified by:
attributesProperty
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- See Also:
-
edgesProperty
- See Also:
-
getAttributes
Gets the value of the property attributes.- Specified by:
getAttributes
in interfaceorg.eclipse.gef.common.attributes.IAttributeStore
- Property description:
-
getEdges
Returns the edgesProperty of thisGraph
.- Returns:
- A list containing the edgesProperty.
-
getNestingNode
-
getNodes
Returns the nodes of this Graph.- Returns:
- A list containing the nodes.
-
getRootGraph
Returns the root graph of this Graph.- Returns:
- the root graph of this graph.
-
nodesProperty
- See Also:
-
setNestingNode
-
toString
-