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 Controller
controller
protected java.lang.String
featureID
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFeature(java.lang.String s, java.lang.String featureID, Registry registry)
protected
AbstractFeature(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 void
actionPerformed(java.awt.event.ActionEvent actionEvent)
protected void
addToToolBar()
protected void
doActionPerformed(java.awt.event.ActionEvent actionEvent)
void
doPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Controller
getController()
java.lang.String
getFeatureID()
java.lang.String
getName()
java.lang.String
getStringValue(java.lang.String key)
void
initialize(Controller controller)
boolean
isInitialized()
boolean
isOn()
boolean
isTwoState()
Indicates whether the feature can be either on or off, without any other states.void
propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
protected java.lang.Object
register(java.lang.String featureID, Registry registry)
protected void
setMenuAccellerator(Controller controller)
void
turnOn(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:
initialize
in interfaceInitializable
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized
in 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:
getFeatureID
in interfaceFeature
-
getStringValue
public java.lang.String getStringValue(java.lang.String key)
-
isTwoState
public boolean isTwoState()
Description copied from interface:Feature
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.- Specified by:
isTwoState
in 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:
actionPerformed
in interfacejava.awt.event.ActionListener
-
doActionPerformed
protected void doActionPerformed(java.awt.event.ActionEvent actionEvent)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
doPropertyChange
public void doPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
-
-