Interface PersistentLayout<V,E>
-
- All Superinterfaces:
com.google.common.base.Function<V,java.awt.geom.Point2D>
,java.util.function.Function<V,java.awt.geom.Point2D>
,Layout<V,E>
- All Known Implementing Classes:
PersistentLayoutImpl
public interface PersistentLayout<V,E> extends Layout<V,E>
interface for PersistentLayout Also holds a nested class Point to serialize the Vertex locations
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PersistentLayout.Point
a serializable class to save locations
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
lock(boolean state)
void
persist(java.lang.String fileName)
void
restore(java.lang.String fileName)
-
Methods inherited from interface edu.uci.ics.jung.algorithms.layout.Layout
getGraph, getSize, initialize, isLocked, lock, reset, setGraph, setInitializer, setLocation, setSize
-
-
-
-
Method Detail
-
persist
void persist(java.lang.String fileName) throws java.io.IOException
- Throws:
java.io.IOException
-
restore
void restore(java.lang.String fileName) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
lock
void lock(boolean state)
-
-