public class SafeSliderUnitIncrementAction
extends javax.swing.AbstractAction
JSlider in a way that will not allow for the value of the slider to go out
of bounds.| Constructor and Description |
|---|
SafeSliderUnitIncrementAction(boolean isPositive)
Basic constructor which accepts a boolean describing if the slider is
positively or negatively incrementing based on the slider direction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
isPositive()
Getter for isPositive which was injected during construction.
|
public SafeSliderUnitIncrementAction(boolean isPositive)
isPositive - Set to true if this is a positive increment on the slider. Set
to false if this is a negative increment on the slider.