public interface GraphView
GraphModel has at least a single view, called the main
view, which contains 100% of the graph. Other views can be defined by users
to define subgraphs with a reduced number of nodes and edges. This is typically
used by filters, which returns filtered graphs.
GraphModel also contains the visible view, which is the
main view by default but can be set to configure the view that is visualized.
What exactly contains the view? The complete hierarchy of nodes, the edges and meta-edges. Each view has separate hierarchy, therefore grouping and meta-edges are independent.
Note that nodes' id is unique, and is not touched by views.
To get the graph in the visible view, see GraphModel.getGraphVisible().
FiltersAPI.
GraphModel.setVisibleView(org.gephi.graph.api.GraphView).| Modifier and Type | Method and Description |
|---|---|
GraphModel |
getGraphModel()
Returns the graph model this view belongs.
|
int |
getViewId()
Returns this view unique identifier.
|
boolean |
isMainView()
Returns
true if this view is the main view. |
int getViewId()
boolean isMainView()
true if this view is the main view. Each
GraphModel has a single main view, which contains all nodes
and edges in the model.true if this is the main view, false
otherwise.GraphModel getGraphModel()
Copyright © 2007-2012 Gephi Consortium. All Rights Reserved.