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
Properties -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheGraph.Buildercan be used to construct a newGraphlittle by little. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of theedgesProperty property.static final StringThe name of thenodes property.Fields inherited from interface org.eclipse.gef.common.attributes.IAttributeStore
ATTRIBUTES_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionGraph()Default constructor, using empty collections for attributes, nodes, and edges.Graph(Collection<? extends Node> nodes, Collection<? extends Edge> edges) Constructs a newGraphfrom the given nodes, and edges but empty attributes.Graph(Map<String, Object> attributes, Collection<? extends Node> nodes, Collection<? extends Edge> edges) Constructs a newGraphfrom 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>voidsetNestingNode(Node nestingNode) toString()
-
Property Details
-
attributes
- Specified by:
attributesPropertyin 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:
attributesPropertyin interfaceorg.eclipse.gef.common.attributes.IAttributeStore- See Also:
-
edgesProperty
- See Also:
-
getAttributes
Gets the value of the property attributes.- Specified by:
getAttributesin 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
-