public abstract class AbstractFeatureLayer extends AbstractFeature
Modifier and Type | Field and Description |
---|---|
protected Layer |
layer |
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
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, setMenuAccellerator
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener
protected Layer layer
protected void doActionPerformed(ActionEvent actionEvent)
doActionPerformed
in class AbstractFeature
protected abstract Layer doAddLayer()
public void initialize(Controller controller)
initialize
in interface Initializable
initialize
in class AbstractFeature
public boolean isOn()
isOn
in interface Feature
isOn
in class AbstractFeature
public boolean isTwoState()
Feature
isTwoState
in interface Feature
isTwoState
in class AbstractFeature
public void setEnabled(boolean tf)
setEnabled
in interface Action
setEnabled
in class AbstractAction
public void turnOn(boolean tf)
turnOn
in interface Feature
turnOn
in class AbstractFeature