public abstract class AbstractOnDemandLayerFeature extends AbstractFeature
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
group |
protected Layer |
layer |
protected boolean |
on |
controller, featureID
Constructor and Description |
---|
AbstractOnDemandLayerFeature(java.lang.String s,
java.lang.String featureID,
java.lang.String iconPath,
java.lang.String group,
Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLayer(LayerPath path) |
protected abstract Layer |
createLayer() |
boolean |
isOn() |
boolean |
isTwoState()
Indicates whether the feature can be either on or off, without any other states.
|
protected void |
removeLayer() |
void |
turnOn(boolean tf) |
actionPerformed, addToToolBar, doActionPerformed, doPropertyChange, getController, getFeatureID, getName, getStringValue, initialize, isInitialized, propertyChange, register, setMenuAccellerator
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected java.lang.String group
protected Layer layer
protected boolean on
public AbstractOnDemandLayerFeature(java.lang.String s, java.lang.String featureID, java.lang.String iconPath, java.lang.String group, Registry registry)
protected void addLayer(LayerPath path)
protected abstract Layer createLayer()
public boolean isOn()
isOn
in interface Feature
isOn
in class AbstractFeature
public boolean isTwoState()
Feature
isTwoState
in interface Feature
isTwoState
in class AbstractFeature
protected void removeLayer()
public void turnOn(boolean tf)
turnOn
in interface Feature
turnOn
in class AbstractFeature