Class ActiveLayersPanel
- java.lang.Object
-
- javax.swing.AbstractAction
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
-
- gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
-
- gov.nasa.worldwindx.applications.worldwindow.features.swinglayermanager.ActiveLayersPanel
-
- All Implemented Interfaces:
Initializable,ActiveLayersManager,WWOPanel,Feature,FeaturePanel,java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class ActiveLayersPanel extends AbstractFeaturePanel implements ActiveLayersManager
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classActiveLayersPanel.ReorderListener
-
Field Summary
Fields Modifier and Type Field Description protected ActiveLayersListjlistprotected javax.swing.DefaultListModelmodelprotected static java.lang.StringTOOL_TIP-
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
panel
-
Fields inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
controller, featureID
-
-
Constructor Summary
Constructors Constructor Description ActiveLayersPanel(Registry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillModel(LayerList layerList)voidinitialize(Controller controller)booleanisIncludeInternalLayers()Indicates whether to show internal layers, those whose attribute-value list containsConstants.INTERNAL_LAYER.booleanisOn()booleanisTwoState()Indicates whether the feature can be either on or off, without any other states.protected voidrefresh(java.beans.PropertyChangeEvent event)voidsetIncludeInternalLayers(boolean includeInternalLayers)Specifies whether to show internal layers.voidturnOn(boolean tf)voidupdateLayerList(LayerList layerList)Replace the contents of the model with the contents of a specified [@link LayerList}.-
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeaturePanel
getDialogControls, getJPanel
-
Methods inherited from class gov.nasa.worldwindx.applications.worldwindow.features.AbstractFeature
actionPerformed, addToToolBar, doActionPerformed, 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, setEnabled
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.features.Feature
getFeatureID, getName
-
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
isInitialized
-
-
-
-
Field Detail
-
TOOL_TIP
protected static final java.lang.String TOOL_TIP
- See Also:
- Constant Field Values
-
model
protected javax.swing.DefaultListModel model
-
jlist
protected ActiveLayersList jlist
-
-
Constructor Detail
-
ActiveLayersPanel
public ActiveLayersPanel(Registry registry)
-
-
Method Detail
-
initialize
public void initialize(Controller controller)
- Specified by:
initializein interfaceInitializable- Overrides:
initializein classAbstractFeaturePanel
-
isIncludeInternalLayers
public boolean isIncludeInternalLayers()
Description copied from interface:ActiveLayersManagerIndicates whether to show internal layers, those whose attribute-value list containsConstants.INTERNAL_LAYER.- Specified by:
isIncludeInternalLayersin interfaceActiveLayersManager- Returns:
- true if internal layers are shown, otherwise false.
-
setIncludeInternalLayers
public void setIncludeInternalLayers(boolean includeInternalLayers)
Description copied from interface:ActiveLayersManagerSpecifies whether to show internal layers.- Specified by:
setIncludeInternalLayersin interfaceActiveLayersManager- Parameters:
includeInternalLayers- true for internal layers to be shown, otherwise false.
-
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.
-
isOn
public boolean isOn()
- Specified by:
isOnin interfaceFeature- Overrides:
isOnin classAbstractFeature
-
turnOn
public void turnOn(boolean tf)
- Specified by:
turnOnin interfaceFeature- Overrides:
turnOnin classAbstractFeature
-
fillModel
protected void fillModel(LayerList layerList)
-
refresh
protected void refresh(java.beans.PropertyChangeEvent event)
-
updateLayerList
public void updateLayerList(LayerList layerList)
Description copied from interface:ActiveLayersManagerReplace the contents of the model with the contents of a specified [@link LayerList}.- Specified by:
updateLayerListin interfaceActiveLayersManager- Parameters:
layerList- the layer list to display.
-
-