public abstract class AbstractOnDemandLayerFeature extends AbstractFeature
| Modifier and Type | Field and Description |
|---|---|
protected String |
group |
protected Layer |
layer |
protected boolean |
on |
controller, featureIDchangeSupport, enabledACCELERATOR_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, setMenuAccelleratoraddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected void addLayer(LayerPath path)
protected abstract Layer createLayer()
public boolean isOn()
isOn in interface FeatureisOn in class AbstractFeaturepublic boolean isTwoState()
FeatureisTwoState in interface FeatureisTwoState in class AbstractFeatureprotected void removeLayer()
public void turnOn(boolean tf)
turnOn in interface FeatureturnOn in class AbstractFeature