Class AbstractFeature
- java.lang.Object
-
- javax.swing.AbstractAction
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
-
- All Implemented Interfaces:
Initializable,Feature,java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
- Direct Known Subclasses:
AbstractApplicationFeature,AbstractElevationsFeature,AbstractFeatureDialog,AbstractFeatureLayer,AbstractFeaturePanel,AbstractOnDemandLayerFeature,AbstractOpenResourceFeature,AppFrameImpl,AppPanelImpl,ControlsPanelImpl,ExternalLinkController,GazetteerPanel,Graticule,IconController,InfoPanelController,LayerManagerDialog,Measurement,MenuBarImpl,NetworkActivitySignal,StatusPanelImpl,ToolBarImpl,ToolTipController,WWPanelImpl,YahooGazetteer
public class AbstractFeature extends javax.swing.AbstractAction implements Feature
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Controllercontrollerprotected java.lang.StringfeatureID
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFeature(java.lang.String s, java.lang.String featureID, Registry registry)protectedAbstractFeature(java.lang.String s, java.lang.String featureID, java.lang.String largeIconPath, Registry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent actionEvent)protected voidaddToToolBar()protected voiddoActionPerformed(java.awt.event.ActionEvent actionEvent)voiddoPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)ControllergetController()java.lang.StringgetFeatureID()java.lang.StringgetName()java.lang.StringgetStringValue(java.lang.String key)voidinitialize(Controller controller)booleanisInitialized()booleanisOn()booleanisTwoState()Indicates whether the feature can be either on or off, without any other states.voidpropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)protected java.lang.Objectregister(java.lang.String featureID, Registry registry)protected voidsetMenuAccellerator(Controller controller)voidturnOn(boolean tf)-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
featureID
protected java.lang.String featureID
-
controller
protected Controller controller
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initializein interfaceInitializable
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitializedin interfaceInitializable
-
register
protected java.lang.Object register(java.lang.String featureID, Registry registry)
-
getController
public Controller getController()
-
getFeatureID
public java.lang.String getFeatureID()
- Specified by:
getFeatureIDin interfaceFeature
-
getStringValue
public java.lang.String getStringValue(java.lang.String key)
-
isTwoState
public boolean isTwoState()
Description copied from interface:FeatureIndicates 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.- Specified by:
isTwoStatein interfaceFeature- Returns:
- true if the feature has only two states, otherwise off.
-
addToToolBar
protected void addToToolBar()
-
setMenuAccellerator
protected void setMenuAccellerator(Controller controller)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
doActionPerformed
protected void doActionPerformed(java.awt.event.ActionEvent actionEvent)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
doPropertyChange
public void doPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
-
-