public abstract static class LayerListDialog.AbstractLayerPropertySliderAction extends javax.swing.AbstractAction implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction
Modifier and Type | Field and Description |
---|---|
private double |
factor |
protected LayerListDialog.LayerListModel |
model |
protected javax.swing.JPopupMenu |
popup |
private SideButton |
sideButton |
protected javax.swing.JSlider |
slider |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLayerPropertySliderAction(LayerListDialog.LayerListModel model,
java.lang.String name,
double factor) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.awt.Component |
createMenuComponent()
Creates and return the menu component.
|
protected abstract double |
getValue() |
(package private) void |
setCorrespondingSideButton(SideButton sideButton)
Sets the corresponding side button.
|
protected abstract void |
setValue(double value) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateEnabledState
supportLayers
protected final LayerListDialog.LayerListModel model
protected final javax.swing.JPopupMenu popup
protected final javax.swing.JSlider slider
private final double factor
private SideButton sideButton
protected AbstractLayerPropertySliderAction(LayerListDialog.LayerListModel model, java.lang.String name, double factor)
protected abstract void setValue(double value)
protected abstract double getValue()
final void setCorrespondingSideButton(SideButton sideButton)
sideButton
- the corresponding side buttonpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public java.awt.Component createMenuComponent()
Layer.LayerAction
createMenuComponent
in interface Layer.LayerAction