public final class LayerListDialog.LayerOpacityAction extends LayerListDialog.AbstractLayerPropertySliderAction
Modifier and Type | Field and Description |
---|---|
private Layer |
layer |
popup, slider
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(java.util.List<Layer> layers) |
void |
updateEnabledState() |
actionPerformed, createMenuComponent
public LayerOpacityAction(Layer layer)
LayerListDialog.LayerOpacityAction
which allows to change the
opacity of one or more layers.layer
- the layer. Must not be null.java.lang.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(java.util.List<Layer> layers)