public interface IGraphContentProvider extends IContentProvider
IGraphContentProvider
mediates between the
ZestContentViewer
and a content model. It provides content elements
which represent nodes, edges between nodes, and nested nodes.Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getAdjacentNodes(java.lang.Object node)
Returns all content elements which represent nodes that are adjacent to
the node represented by the given content element, i.e. determines the
targets of all edges that start at the given node.
|
java.lang.Object[] |
getNestedGraphNodes(java.lang.Object node)
Returns the content elements representing the nodes within the graph that
is nested inside the node represented by the given content element.
|
java.lang.Object[] |
getNodes()
Returns all content elements which represent nodes on the first level of
the graph.
|
boolean |
hasNestedGraph(java.lang.Object node)
Determines whether the node represented by the given content element has
nested children.
|
dispose, inputChanged
java.lang.Object[] getAdjacentNodes(java.lang.Object node)
null
is returned.node
- A model object representing a graph node.java.lang.Object[] getNestedGraphNodes(java.lang.Object node)
null
is returned.node
- A content element that represents a node.java.lang.Object[] getNodes()
null
is returned.boolean hasNestedGraph(java.lang.Object node)
node
- A content element that represents a node, according to the
getNodes()
method.true
when the node represented by the given content
element has nested children, otherwise false
.Copyright (c) 2014 itemis AG and others. All rights reserved.