Package sc.fiji.snt.viewer
Class GraphViewer
java.lang.Object
sc.fiji.snt.viewer.GraphViewer
Provides a graphical user interface for visualizing
and interacting with graphs using SNT's "Graph Viewer". It allows the
display of various graph types, including directed weighted graphs,
annotation graphs w/ options for interactive exploration and export.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphViewer(SNTGraph<?, ? extends org.jgrapht.graph.DefaultWeightedEdge> inputGraph) Constructs a new GraphViewer for the specified graph. -
Method Summary
Modifier and TypeMethodDescriptionGets the GraphEditor for this viewer.static voidvoidsetContext(org.scijava.Context context) Sets the SciJava context for this viewer.show()Displays a graph in SNT's "Graph Viewer" featuring UI commands for interactive visualization and export options.Displays a graph in SNT's "Graph Viewer" featuring UI commands for interactive visualization and export options.
-
Constructor Details
-
GraphViewer
Constructs a new GraphViewer for the specified graph.- Parameters:
inputGraph- the SNTGraph to be visualized
-
-
Method Details
-
setContext
public void setContext(org.scijava.Context context) Sets the SciJava context for this viewer.- Parameters:
context- the SciJava context- Throws:
org.scijava.NullContextException- if context is null
-
getEditor
Gets the GraphEditor for this viewer.- Returns:
- the GraphEditor instance
-
show
Displays a graph in SNT's "Graph Viewer" featuring UI commands for interactive visualization and export options.- Returns:
- the assembled window
-
show
Displays a graph in SNT's "Graph Viewer" featuring UI commands for interactive visualization and export options.- Parameters:
title- the Window title (optional, null allowed)- Returns:
- the assembled window
-
main
-