NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.features
Class AbstractApplicationFeature

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
          extended by gov.nasa.worldwindx.applications.worldwindow.features.AbstractApplicationFeature
All Implemented Interfaces:
Initializable, Feature, NetworkActivitySignal.NetworkUser, ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action

public abstract class AbstractApplicationFeature
extends AbstractFeature
implements NetworkActivitySignal.NetworkUser

See Also:
Serialized Form

Field Summary
protected  LayerList appLayers
           
protected  boolean autoSelectLayers
           
protected  Thread createLayersThread
           
protected  boolean on
           
 
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected AbstractApplicationFeature(String name, String featureID, String largeIconPath, Registry registry)
           
 
Method Summary
protected  void addLayer(Layer layer, LayerPath path)
           
protected  void addLayers(LayerList layerList)
           
protected  LayerTree addLayerTree(LayerTree layerTree)
           
protected  void createLayers()
           
protected  void destroyLayer(Layer layer)
           
protected  void destroyLayers()
           
protected  void doAddLayer(Layer layer, LayerPath path)
           
protected abstract  void doCreateLayers()
           
 LayerList getAppLayers()
           
protected abstract  String getLayerGroupName()
           
protected  void handleInterrupt()
           
 boolean hasNetworkActivity()
           
 void initialize(Controller controller)
           
 boolean isAutoSelectLayers()
           
 boolean isOn()
           
protected  void killPopulateLayerThread()
           
protected  void removeLayers()
           
 void setAutoSelectLayers(boolean autoSelectLayers)
           
protected  void setOn(boolean tf)
           
 
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, isTwoState, propertyChange, register, setMenuAccellerator, turnOn
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Field Detail

appLayers

protected LayerList appLayers

autoSelectLayers

protected boolean autoSelectLayers

createLayersThread

protected Thread createLayersThread

on

protected boolean on
Constructor Detail

AbstractApplicationFeature

protected AbstractApplicationFeature(String name,
                                     String featureID,
                                     String largeIconPath,
                                     Registry registry)
Method Detail

addLayer

protected void addLayer(Layer layer,
                        LayerPath path)

addLayers

protected void addLayers(LayerList layerList)

addLayerTree

protected LayerTree addLayerTree(LayerTree layerTree)

createLayers

protected void createLayers()

destroyLayer

protected void destroyLayer(Layer layer)

destroyLayers

protected void destroyLayers()

doAddLayer

protected void doAddLayer(Layer layer,
                          LayerPath path)

doCreateLayers

protected abstract void doCreateLayers()

getAppLayers

public LayerList getAppLayers()

getLayerGroupName

protected abstract String getLayerGroupName()

handleInterrupt

protected void handleInterrupt()

hasNetworkActivity

public boolean hasNetworkActivity()
Specified by:
hasNetworkActivity in interface NetworkActivitySignal.NetworkUser

initialize

public void initialize(Controller controller)
Specified by:
initialize in interface Initializable
Overrides:
initialize in class AbstractFeature

isAutoSelectLayers

public boolean isAutoSelectLayers()

isOn

public boolean isOn()
Specified by:
isOn in interface Feature
Overrides:
isOn in class AbstractFeature

killPopulateLayerThread

protected void killPopulateLayerThread()

removeLayers

protected void removeLayers()

setAutoSelectLayers

public void setAutoSelectLayers(boolean autoSelectLayers)

setOn

protected void setOn(boolean tf)

NASA World Wind