public final class LayerListDialog.LayerOpacityAction extends LayerListDialog.AbstractLayerPropertySliderAction
Modifier and Type | Field and Description |
---|---|
private Layer |
layer |
popup, slider
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 |
---|
LayerOpacityAction()
Creates a
LayerListDialog.ShowHideLayerAction which will toggle the visibility of
the currently selected layers |
LayerOpacityAction(Layer layer)
Creates a
LayerListDialog.LayerOpacityAction which allows to change the
opacity of one or more layers. |
Modifier and Type | Method and Description |
---|---|
protected SideButton |
getCorrespondingSideButton() |
protected double |
getValue() |
protected void |
setValue(double value) |
boolean |
supportLayers(List<Layer> layers) |
void |
updateEnabledState() |
actionPerformed, createMenuComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public LayerOpacityAction(Layer layer)
LayerListDialog.LayerOpacityAction
which allows to change the
opacity of one or more layers.layer
- the layer. Must not be null.IllegalArgumentException
- if layer is nullpublic LayerOpacityAction()
LayerListDialog.ShowHideLayerAction
which will toggle the visibility of
the currently selected layersprotected void setValue(double value)
setValue
in class LayerListDialog.AbstractLayerPropertySliderAction
protected double getValue()
getValue
in class LayerListDialog.AbstractLayerPropertySliderAction
protected SideButton getCorrespondingSideButton()
getCorrespondingSideButton
in class LayerListDialog.AbstractLayerPropertySliderAction
public void updateEnabledState()
public boolean supportLayers(List<Layer> layers)