public abstract class AbstractOnDemandLayerFeature extends AbstractFeature
Modifier and Type | Field and Description |
---|---|
protected String |
group |
protected Layer |
layer |
protected boolean |
on |
controller, featureID
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
AbstractOnDemandLayerFeature(String s,
String featureID,
String iconPath,
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
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