NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.features
Interface Feature

All Superinterfaces:
Action, ActionListener, EventListener, Initializable, PropertyChangeListener
All Known Subinterfaces:
ActiveLayersManager, FeaturePanel, LayerManager, MenuBar, StatusPanel, WWODialog
All Known Implementing Classes:
AbstractApplicationFeature, AbstractElevationsFeature, AbstractFeature, AbstractFeatureDialog, AbstractFeatureLayer, AbstractFeaturePanel, AbstractOnDemandLayerFeature, AbstractOpenResourceFeature, ActiveLayersPanel, AppFrameImpl, AppPanelImpl, Compass, ControlsPanelImpl, CoordinatesDisplay, Crosshair, ExternalLinkController, GazetteerPanel, Graticule, GraticuleLayer, IconController, ImportedDataDialog, InfoPanelController, LatLonGraticule, LayerManagerDialog, LayerManagerPanel, Measurement, MeasurementDialog, MeasurementPanel, MenuBarImpl, Navigation, NetworkActivitySignal, OpenFile, OpenURL, ScaleBar, StatusPanelImpl, ToolBarImpl, ToolTipController, UTMGraticule, WMSDialog, WMSPanel, WWPanelImpl, YahooGazetteer

public interface Feature
extends Initializable, Action, PropertyChangeListener


Field Summary
 
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
 
Method Summary
 String getFeatureID()
           
 String getName()
           
 boolean isOn()
           
 boolean isTwoState()
          Indicates whether the feature can be either on or off, without any other states.
 void turnOn(boolean tf)
           
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
initialize, isInitialized
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

getFeatureID

String getFeatureID()

getName

String getName()

isOn

boolean isOn()

isTwoState

boolean isTwoState()
Indicates whether the feature can be either on or off, without any other states. This is used by the tool bar and menu-bar menus to determine whether the feature's enable/disable button or menu item should be displayed with an indicator that it's either on or off. In the case of a menu the indicator is a check box. In the case of a tool bar button the indicator is a dot above the button.

Returns:
true if the feature has only two states, otherwise off.

turnOn

void turnOn(boolean tf)

NASA World Wind