Package edu.uci.ics.jung.samples
Class PersistentLayoutDemo
- java.lang.Object
-
- edu.uci.ics.jung.samples.PersistentLayoutDemo
-
public class PersistentLayoutDemo extends java.lang.Object
Demonstrates the use ofPersistentLayout
andPersistentLayoutImpl
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
fileName
the name of the file where the layout is saved(package private) Graph<java.lang.String,java.lang.Number>
graph
the graph(package private) PersistentLayout<java.lang.String,java.lang.Number>
persistentLayout
(package private) VisualizationViewer<java.lang.String,java.lang.Number>
vv
the visual component and renderer for the graph
-
Constructor Summary
Constructors Constructor Description PersistentLayoutDemo(java.lang.String fileName)
create an instance of a simple graph with controls to demo the persistence and zoom features.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
a driver for this demo
-
-
-
Field Detail
-
graph
Graph<java.lang.String,java.lang.Number> graph
the graph
-
fileName
java.lang.String fileName
the name of the file where the layout is saved
-
vv
VisualizationViewer<java.lang.String,java.lang.Number> vv
the visual component and renderer for the graph
-
persistentLayout
PersistentLayout<java.lang.String,java.lang.Number> persistentLayout
-
-