public final class LayerListDialog.LayerOpacityAction extends LayerListDialog.AbstractLayerPropertySliderAction
| Modifier and Type | Field and Description |
|---|---|
private Layer |
layer |
popup, sliderchangeSupport, 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 |
|---|
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, createMenuComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic 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.AbstractLayerPropertySliderActionprotected double getValue()
getValue in class LayerListDialog.AbstractLayerPropertySliderActionprotected SideButton getCorrespondingSideButton()
getCorrespondingSideButton in class LayerListDialog.AbstractLayerPropertySliderActionpublic void updateEnabledState()
public boolean supportLayers(List<Layer> layers)