Class Graticule
- java.lang.Object
-
- javax.swing.AbstractAction
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
-
- gov.nasa.worldwindx.applications.worldwindow.features.Graticule
-
- All Implemented Interfaces:
Initializable,Feature,java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class Graticule extends AbstractFeature
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoActionPerformed(java.awt.event.ActionEvent actionEvent)protected Feature[]getGraticules()voidinitialize(Controller controller)booleanisOn()booleanisTwoState()Indicates whether the feature can be either on or off, without any other states.voidsetEnabled(boolean tf)voidturnOn(boolean tf)-
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, propertyChange, register, setMenuAccellerator
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
Graticule
public Graticule(Registry registry)
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initializein interfaceInitializable- Overrides:
initializein classAbstractFeature
-
getGraticules
protected Feature[] getGraticules()
-
isOn
public boolean isOn()
- Specified by:
isOnin interfaceFeature- Overrides:
isOnin classAbstractFeature
-
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- Overrides:
isTwoStatein classAbstractFeature- Returns:
- true if the feature has only two states, otherwise off.
-
turnOn
public void turnOn(boolean tf)
- Specified by:
turnOnin interfaceFeature- Overrides:
turnOnin classAbstractFeature
-
setEnabled
public void setEnabled(boolean tf)
- Specified by:
setEnabledin interfacejavax.swing.Action- Overrides:
setEnabledin classjavax.swing.AbstractAction
-
doActionPerformed
protected void doActionPerformed(java.awt.event.ActionEvent actionEvent)
- Overrides:
doActionPerformedin classAbstractFeature
-
-