|
Drag[en]gine Script Module DragonScript 1.35
|
Value of scrollbar like widgets. More...
Public Member Functions | |
| void | addListener (RangeModelListener listener) |
| Add listener. | |
| int | getIncrement () |
| Increment for changing the value by small increments. | |
| int | getMaximum () |
| Maximum value. | |
| int | getMinimum () |
| Minimal value. | |
| int | getPageSize () |
| Size of a page. | |
| int | getValue () |
| Current value. | |
| void | removeListener (RangeModelListener listener) |
| Remove listener. | |
| void | setAll (int minimum, int maximum, int pageSize, int value, int increment) |
| Set properties. | |
| void | setIncrement (int increment) |
| Set increment for changing the value by small increments. | |
| void | setMaximum (int maximum) |
| Set maximum value. | |
| void | setMinimum (int minimum) |
| Set minimum value. | |
| void | setPageSize (int pageSize) |
| Set page size. | |
| void | setValue (int value) |
| Set current value clamped to the range. | |
Value of scrollbar like widgets.
Provides value range, page size and current value. The range model is responsible for checking all constraints are met at all time. These are the constraints:
If a parameter is changed breaking one or more of these constraints the range model implementor has to adjusted the parameters to fix the constraints.
The increment is used by scroll bars to change the value is the users clicks the scroll buttons.
| void Dragengine.Gui.RangeModel.addListener | ( | RangeModelListener | listener | ) |
| int Dragengine.Gui.RangeModel.getIncrement | ( | ) |
Increment for changing the value by small increments.
Implemented in Dragengine.Gui.DefaultRangeModel.
References setMinimum().
Referenced by getValue().
| int Dragengine.Gui.RangeModel.getMaximum | ( | ) |
Maximum value.
Implemented in Dragengine.Gui.DefaultRangeModel.
References getPageSize().
Referenced by getMinimum().
| int Dragengine.Gui.RangeModel.getMinimum | ( | ) |
Minimal value.
Implemented in Dragengine.Gui.DefaultRangeModel.
References getMaximum(), and getMinimum().
Referenced by getMinimum().
| int Dragengine.Gui.RangeModel.getPageSize | ( | ) |
Size of a page.
Implemented in Dragengine.Gui.DefaultRangeModel.
References getValue().
Referenced by getMaximum().
| int Dragengine.Gui.RangeModel.getValue | ( | ) |
Current value.
Implemented in Dragengine.Gui.DefaultRangeModel.
References getIncrement().
Referenced by getPageSize().
| void Dragengine.Gui.RangeModel.removeListener | ( | RangeModelListener | listener | ) |
| void Dragengine.Gui.RangeModel.setAll | ( | int | minimum, |
| int | maximum, | ||
| int | pageSize, | ||
| int | value, | ||
| int | increment ) |
Set properties.
If the constraints would be broken the maximum value is adjusted then the current value until the condititions hold again.
| EInvalidParam | pageSize is less than 1. |
Implemented in Dragengine.Gui.DefaultRangeModel.
Referenced by setValue().
| void Dragengine.Gui.RangeModel.setIncrement | ( | int | increment | ) |
Set increment for changing the value by small increments.
Implemented in Dragengine.Gui.DefaultRangeModel.
References addListener(), and removeListener().
Referenced by setMaximum().
| void Dragengine.Gui.RangeModel.setMaximum | ( | int | maximum | ) |
Set maximum value.
If the constraints would be broken the maximum value is adjusted then the current value until the conditions hold again.
Implemented in Dragengine.Gui.DefaultRangeModel.
References setIncrement(), setPageSize(), and setValue().
Referenced by setMinimum().
| void Dragengine.Gui.RangeModel.setMinimum | ( | int | minimum | ) |
Set minimum value.
If the constraints would be broken the maximum value is adjusted then the current value until the condititions hold again.
Implemented in Dragengine.Gui.DefaultRangeModel.
References setMaximum().
Referenced by getIncrement().
| void Dragengine.Gui.RangeModel.setPageSize | ( | int | pageSize | ) |
Set page size.
If the constraints would be broken the current value is adjusted.
| EInvalidParam | pageSize is less than 1. |
Implemented in Dragengine.Gui.DefaultRangeModel.
Referenced by setMaximum().
| void Dragengine.Gui.RangeModel.setValue | ( | int | value | ) |
Set current value clamped to the range.
Implemented in Dragengine.Gui.DefaultRangeModel.
References setAll().
Referenced by setMaximum().