Adds a ChangeListener. The change listeners are run each
time any one of the Bounded Range model properties changes.
l | the ChangeListener to add |
removeChangeListener, BoundedRangeModel.addChangeListener
Returns the model's extent.
setExtent, BoundedRangeModel.getExtent
Returns the model's maximum.
setMaximum, BoundedRangeModel.getMaximum
Returns the model's minimum.
setMinimum, BoundedRangeModel.getMinimum
Returns the model's current value.
setValue, BoundedRangeModel.getValue
Returns true if the value is in the process of changing as a result of actions being taken by the user.
valueIsAdjusting property
setValue, BoundedRangeModel.getValueIsAdjusting
Removes a ChangeListener.
l | the ChangeListener to remove |
addChangeListener, BoundedRangeModel.removeChangeListener
Sets the extent to n after ensuring that n is greater than or equal to zero and falls within the model's constraints:
minimum <= value <= value+extent <= maximum
n | the model's new extent |
BoundedRangeModel.setExtent
Sets the maximum to n after ensuring that n that the other three properties obey the model's constraints:
minimum <= value <= value+extent <= maximum
n | the model's new maximum |
BoundedRangeModel.setMaximum
Sets the minimum to n after ensuring that n that the other three properties obey the model's constraints:
minimum <= value <= value+extent <= maximum
n | the model's new minimum |
getMinimum, BoundedRangeModel.setMinimum
Sets all of the BoundedRangeModel properties after forcing
the arguments to obey the usual constraints:
minimum <= value <= value+extent <= maximum
At most, one ChangeEvent is generated.
newValue | an int giving the current value | |
newExtent | an int giving the amount by which the value can "jump" | |
newMin | an int giving the minimum value | |
newMax | an int giving the maximum value | |
adjusting | a boolean, true if a series of changes are in progress |
BoundedRangeModel.setRangeProperties, setValue, setExtent, setMinimum, setMaximum, setValueIsAdjusting
Sets the current value of the model. For a slider, that determines where the knob appears. Ensures that the new value, n falls within the model's constraints:
minimum <= value <= value+extent <= maximum
n | the model's new value |
BoundedRangeModel.setValue
Sets the valueIsAdjusting property.
b | true if the upcoming changes to the value property are part of a series |
getValueIsAdjusting, setValue, BoundedRangeModel.setValueIsAdjusting
Diagram: BoundedRangeModel