ScrollAdjusterpublic static class JSpinnerOperator.NumberScrollAdjuster extends java.lang.Object implements ScrollAdjuster
ScrollAdjuster to be used for JSpinner
component having SpinnerNumberModel model.JSpinnerOperator.NumberSpinnerOperatorDECREASE_SCROLL_DIRECTION, DO_NOT_TOUCH_SCROLL_DIRECTION, INCREASE_SCROLL_DIRECTION| Constructor | Description |
|---|---|
NumberScrollAdjuster(JSpinnerOperator oper,
double value) |
Constructs a
NumberScrollAdjuster object. |
NumberScrollAdjuster(JSpinnerOperator oper,
java.lang.Number value) |
Constructs a
NumberScrollAdjuster object. |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getDescription() |
Returns a printable scrolling description.
|
int |
getScrollDirection() |
Returns scroll direction to reach necessary scroller value.
|
int |
getScrollOrientation() |
Returns scrolling orientation.
|
public NumberScrollAdjuster(JSpinnerOperator oper, double value)
NumberScrollAdjuster object.oper - an operator to work with.value - a value to scroll to.public NumberScrollAdjuster(JSpinnerOperator oper, java.lang.Number value)
NumberScrollAdjuster object.oper - an operator to work with.value - a value to scroll to.public int getScrollDirection()
ScrollAdjustergetScrollDirection in interface ScrollAdjusterpublic int getScrollOrientation()
ScrollAdjustergetScrollOrientation in interface ScrollAdjusterpublic java.lang.String getDescription()
ScrollAdjustergetDescription in interface ScrollAdjuster