|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BoundedRangeModel
com.jmex.bui.BoundedSnappingRangeModel
public class BoundedSnappingRangeModel
Provides a Bounded range model where values snap to a period.
| Field Summary | |
|---|---|
protected int |
_snap
|
| Fields inherited from class com.jmex.bui.BoundedRangeModel |
|---|
_event, _extent, _listeners, _max, _min, _value |
| Constructor Summary | |
|---|---|
BoundedSnappingRangeModel(int min,
int value,
int extent,
int max,
int snap)
Creates a bounded range model with the specified minimum, current, extent and maximum values, and a snap period. |
|
| Method Summary | |
|---|---|
int |
getScrollIncrement()
Returns the increment by which this model should be scrolled when the user presses one of the buttons at the end of the scrollbar. |
void |
setValue(int value)
Configures the value of this model. |
| Methods inherited from class com.jmex.bui.BoundedRangeModel |
|---|
addChangeListener, createWheelListener, getExtent, getMaximum, getMinimum, getRange, getRatio, getValue, removeChangeListener, setExtent, setMaximum, setMinimum, setRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _snap
| Constructor Detail |
|---|
public BoundedSnappingRangeModel(int min,
int value,
int extent,
int max,
int snap)
| Method Detail |
|---|
public void setValue(int value)
min <= value <= max - extent or if value is not a modulus of snap.
- Overrides:
setValue in class BoundedRangeModel
public int getScrollIncrement()
BoundedRangeModel
getScrollIncrement in class BoundedRangeModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||