NASA World Wind

gov.nasa.worldwindx.examples.util
Class SessionState

java.lang.Object
  extended by gov.nasa.worldwindx.examples.util.SessionState

public class SessionState
extends Object


Nested Class Summary
protected static class SessionState.LayerStateFilename
           
 
Field Summary
protected static Comparator<String> LAYER_STATE_FILENAME_COMPARATOR
           
protected static String LAYER_STATE_FILENAME_DELIMITER
           
protected static String LAYER_STATE_PATH
           
protected  String sessionKey
           
protected static String VIEW_STATE_PATH
           
 
Constructor Summary
SessionState(String sessionKey)
           
 
Method Summary
protected static String composeLayerStateFilename(String className, int index)
           
protected  Layer findLayer(LayerList layers, String layerName)
           
protected  String getLayerStatePath()
           
 String getSessionKey()
           
protected  String getSessionStatePath()
           
protected  String getViewStatePath()
           
protected  boolean isLayerRestorable(Layer layer)
           
protected static SessionState.LayerStateFilename parseLayerStateFilename(String filename)
           
protected  void restoreLayerListState(WorldWindow worldWindow)
           
protected  Layer restoreLayerState(File stateFile)
           
 void restoreSessionState(WorldWindow worldWindow)
           
protected  void restoreViewState(WorldWindow worldWindow)
           
protected  void saveLayerListState(WorldWindow worldWindow)
           
protected  void saveLayerState(Layer layer, File stateFile)
           
 void saveSessionState(WorldWindow worldWindow)
           
protected  void saveViewState(WorldWindow worldWindow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SessionState

public SessionState(String sessionKey)
Method Detail

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)

NASA World Wind