A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/javax/swing/BoundedRangeModel.html below:

BoundedRangeModel (Java Platform SE 8 )

Defines the data model used by components like

Slider

s and

ProgressBar

s. Defines four interrelated integer properties: minimum, maximum, extent and value. These four integers define two nested ranges like this:

 minimum <= value <= value+extent <= maximum
 

The outer range is

minimum,maximum

and the inner range is

value,value+extent

. The inner range must lie within the outer one, i.e.

value

must be less than or equal to

maximum

and

value+extent

must greater than or equal to

minimum

, and

maximum

must be greater than or equal to

minimum

. There are a few features of this model that one might find a little surprising. These quirks exist for the convenience of the Swing BoundedRangeModel clients, such as

Slider

and

ScrollBar

.

For an example of specifying custom bounded range models used by sliders, see Separable model architecture in A Swing Architecture Overview.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4