public final class Graph
extends java.lang.Object
implements org.eclipse.gef.common.attributes.IAttributeStore
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> |
attributes |
javafx.beans.property.ReadOnlyListProperty<Edge> |
edges
|
javafx.beans.property.ReadOnlyListProperty<Node> |
nodes
|
Modifier and Type | Class and Description |
---|---|
static class |
Graph.Builder
The
Graph.Builder can be used to construct a new Graph little
by little. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EDGES_PROPERTY
The name of the
edgesProperty property . |
static java.lang.String |
NODES_PROPERTY
The name of the
nodes property . |
Constructor and Description |
---|
Graph()
Default constructor, using empty collections for attributes, nodes, and
edges.
|
Graph(java.util.Collection<? extends Node> nodes,
java.util.Collection<? extends Edge> edges)
Constructs a new
Graph from the given nodes, and edges but empty
attributes. |
Graph(java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<? extends Node> nodes,
java.util.Collection<? extends Edge> edges)
Constructs a new
Graph from the given attributes, nodes, and
edgesProperty. |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> |
attributesProperty() |
javafx.beans.property.ReadOnlyListProperty<Edge> |
edgesProperty()
|
javafx.collections.ObservableMap<java.lang.String,java.lang.Object> |
getAttributes()
Gets the value of the property attributes.
|
javafx.collections.ObservableList<Edge> |
getEdges()
Returns the edgesProperty of this
Graph . |
Node |
getNestingNode()
|
javafx.collections.ObservableList<Node> |
getNodes()
Returns the nodes of this Graph.
|
Graph |
getRootGraph()
Returns the root graph of this Graph.
|
javafx.beans.property.ReadOnlyListProperty<Node> |
nodesProperty()
|
void |
setNestingNode(Node nestingNode)
|
java.lang.String |
toString() |
public javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> attributesProperty
attributesProperty
in interface org.eclipse.gef.common.attributes.IAttributeStore
getAttributes()
public javafx.beans.property.ReadOnlyListProperty<Edge> edgesProperty
getEdges()
public javafx.beans.property.ReadOnlyListProperty<Node> nodesProperty
getNodes()
public static final java.lang.String NODES_PROPERTY
nodes property
.public static final java.lang.String EDGES_PROPERTY
edgesProperty property
.public Graph()
public Graph(java.util.Collection<? extends Node> nodes, java.util.Collection<? extends Edge> edges)
public javafx.beans.property.ReadOnlyMapProperty<java.lang.String,java.lang.Object> attributesProperty()
attributesProperty
in interface org.eclipse.gef.common.attributes.IAttributeStore
getAttributes()
public javafx.beans.property.ReadOnlyListProperty<Edge> edgesProperty()
getEdges()
public javafx.collections.ObservableMap<java.lang.String,java.lang.Object> getAttributes()
getAttributes
in interface org.eclipse.gef.common.attributes.IAttributeStore
public javafx.collections.ObservableList<Edge> getEdges()
Graph
.public Node getNestingNode()
public javafx.collections.ObservableList<Node> getNodes()
public Graph getRootGraph()
public javafx.beans.property.ReadOnlyListProperty<Node> nodesProperty()
getNodes()
public void setNestingNode(Node nestingNode)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2014 itemis AG and others. All rights reserved.