public abstract class AbstractFeatureLayer extends AbstractFeature
Modifier and Type | Field and Description |
---|---|
protected Layer |
layer |
controller, featureID
Modifier | Constructor and Description |
---|---|
protected |
AbstractFeatureLayer(java.lang.String featureTitle,
java.lang.String featureID,
java.lang.String iconFilePath,
boolean twoState,
Registry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doActionPerformed(java.awt.event.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
protected Layer layer
protected AbstractFeatureLayer(java.lang.String featureTitle, java.lang.String featureID, java.lang.String iconFilePath, boolean twoState, Registry registry)
protected void doActionPerformed(java.awt.event.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 javax.swing.Action
setEnabled
in class javax.swing.AbstractAction
public void turnOn(boolean tf)
turnOn
in interface Feature
turnOn
in class AbstractFeature