Class PersistentLayoutDemo
java.lang.Object
edu.uci.ics.jung.samples.PersistentLayoutDemo
Demonstrates the use of
PersistentLayout
and PersistentLayoutImpl.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Stringthe name of the file where the layout is savedthe graph(package private) PersistentLayout<String, Number> (package private) VisualizationViewer<String, Number> the visual component and renderer for the graph -
Constructor Summary
ConstructorsConstructorDescriptionPersistentLayoutDemo(String fileName) create an instance of a simple graph with controls to demo the persistence and zoom features. -
Method Summary
-
Field Details
-
graph
-
fileName
String fileNamethe name of the file where the layout is saved -
vv
the visual component and renderer for the graph -
persistentLayout
PersistentLayout<String,Number> persistentLayout
-
-
Constructor Details
-
PersistentLayoutDemo
create an instance of a simple graph with controls to demo the persistence and zoom features.- Parameters:
fileName- where to save/restore the graph positions
-
-
Method Details
-
main
a driver for this demo- Parameters:
args- should hold the filename for the persistence demo
-