public abstract class AbstractFeatureLayer extends AbstractFeature
| Modifier and Type | Field and Description |
|---|---|
protected Layer |
layer |
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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFeatureLayer(String featureTitle,
String featureID,
String iconFilePath,
boolean twoState,
Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActionPerformed(ActionEvent actionEvent) |
protected abstract Layer |
doAddLayer() |
void |
initialize(Controller controller) |
boolean |
isOn() |
boolean |
isTwoState()
Indicates whether the feature can be either on or off, without any other states.
|
void |
setEnabled(boolean tf) |
void |
turnOn(boolean tf) |
actionPerformed, addToToolBar, doPropertyChange, getController, getFeatureID, getName, getStringValue, isInitialized, propertyChange, register, setMenuAccelleratoraddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListenerprotected Layer layer
protected void doActionPerformed(ActionEvent actionEvent)
doActionPerformed in class AbstractFeatureprotected abstract Layer doAddLayer()
public void initialize(Controller controller)
initialize in interface Initializableinitialize in class AbstractFeaturepublic boolean isOn()
isOn in interface FeatureisOn in class AbstractFeaturepublic boolean isTwoState()
FeatureisTwoState in interface FeatureisTwoState in class AbstractFeaturepublic void setEnabled(boolean tf)
setEnabled in interface ActionsetEnabled in class AbstractActionpublic void turnOn(boolean tf)
turnOn in interface FeatureturnOn in class AbstractFeature