Java javax.swing DefaultBoundedRangeModel fields, constructors, methods, implement or subclass

Example usage for Java javax.swing DefaultBoundedRangeModel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing DefaultBoundedRangeModel.

The text is from its open source code.

Subclass

javax.swing.DefaultBoundedRangeModel has subclasses.
Click this link to see all its subclasses.

Constructor

DefaultBoundedRangeModel()
Initializes all of the properties with default values.
DefaultBoundedRangeModel(int value, int extent, int min, int max)
Initializes value, extent, minimum and maximum.

Method

voidaddChangeListener(ChangeListener l)
Adds a ChangeListener.
ChangeListener[]getChangeListeners()
Returns an array of all the change listeners registered on this DefaultBoundedRangeModel.
intgetExtent()
Returns the model's extent.
intgetMaximum()
Returns the model's maximum.
intgetMinimum()
Returns the model's minimum.
intgetValue()
Returns the model's current value.
booleangetValueIsAdjusting()
Returns true if the value is in the process of changing as a result of actions being taken by the user.
voidremoveChangeListener(ChangeListener l)
Removes a ChangeListener.
voidsetExtent(int n)
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 
voidsetMaximum(int n)
Sets the maximum to n after ensuring that n that the other three properties obey the model's constraints:
 minimum <= value <= value+extent <= maximum 
voidsetMinimum(int n)
Sets the minimum to n after ensuring that n that the other three properties obey the model's constraints:
 minimum <= value <= value+extent <= maximum 
voidsetRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean adjusting)
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.

voidsetValue(int n)
Sets the current value of the model.
voidsetValueIsAdjusting(boolean b)
Sets the valueIsAdjusting property.
StringtoString()
Returns a string that displays all of the BoundedRangeModel properties.