gov.nasa.worldwindx.examples.util
Class SessionState
java.lang.Object
gov.nasa.worldwindx.examples.util.SessionState
public class SessionState
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAYER_STATE_FILENAME_COMPARATOR
protected static final Comparator<String> LAYER_STATE_FILENAME_COMPARATOR
LAYER_STATE_FILENAME_DELIMITER
protected static final String LAYER_STATE_FILENAME_DELIMITER
- See Also:
- Constant Field Values
LAYER_STATE_PATH
protected static final String LAYER_STATE_PATH
- See Also:
- Constant Field Values
sessionKey
protected String sessionKey
VIEW_STATE_PATH
protected static final String VIEW_STATE_PATH
- See Also:
- Constant Field Values
SessionState
public SessionState(String sessionKey)
composeLayerStateFilename
protected static String composeLayerStateFilename(String className,
int index)
findLayer
protected Layer findLayer(LayerList layers,
String layerName)
getLayerStatePath
protected String getLayerStatePath()
getSessionKey
public String getSessionKey()
getSessionStatePath
protected String getSessionStatePath()
getViewStatePath
protected String getViewStatePath()
isLayerRestorable
protected boolean isLayerRestorable(Layer layer)
parseLayerStateFilename
protected static SessionState.LayerStateFilename parseLayerStateFilename(String filename)
restoreLayerListState
protected void restoreLayerListState(WorldWindow worldWindow)
restoreLayerState
protected Layer restoreLayerState(File stateFile)
restoreSessionState
public void restoreSessionState(WorldWindow worldWindow)
restoreViewState
protected void restoreViewState(WorldWindow worldWindow)
saveLayerListState
protected void saveLayerListState(WorldWindow worldWindow)
saveLayerState
protected void saveLayerState(Layer layer,
File stateFile)
saveSessionState
public void saveSessionState(WorldWindow worldWindow)
saveViewState
protected void saveViewState(WorldWindow worldWindow)