public static final class LayerListDialog.LayerOpacityAction extends LayerListDialog.AbstractLayerPropertySliderAction
| Modifier and Type | Field and Description |
|---|---|
private Layer |
layer |
model, popup, slider| Constructor and Description |
|---|
LayerOpacityAction(LayerListDialog.LayerListModel model)
Creates a
LayerListDialog.ShowHideLayerAction which will toggle the visibility of the currently selected layers |
LayerOpacityAction(LayerListDialog.LayerListModel model,
Layer layer)
Creates a
LayerListDialog.LayerOpacityAction which allows to change the opacity of one or more layers. |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getValue() |
protected void |
setValue(double value) |
boolean |
supportLayers(java.util.List<Layer> layers)
Determines if this action supports a given list of layers.
|
void |
updateEnabledState() |
actionPerformed, createMenuComponent, setCorrespondingSideButtonpublic LayerOpacityAction(LayerListDialog.LayerListModel model, Layer layer)
LayerListDialog.LayerOpacityAction which allows to change the opacity of one or more layers.model - layer list modellayer - the layer. Must not be null.java.lang.IllegalArgumentException - if layer is nullpublic LayerOpacityAction(LayerListDialog.LayerListModel model)
LayerListDialog.ShowHideLayerAction which will toggle the visibility of the currently selected layersmodel - layer list modelprotected void setValue(double value)
setValue in class LayerListDialog.AbstractLayerPropertySliderActionprotected double getValue()
getValue in class LayerListDialog.AbstractLayerPropertySliderActionpublic void updateEnabledState()
public boolean supportLayers(java.util.List<Layer> layers)
Layer.LayerActionlayers - list of layerstrue if this action supports the given list of layers, false otherwise