org.gnu.gtk
public abstract class Range extends Widget
See Also: HScale HScrollBar VScale VScrollBar
Method Summary | |
---|---|
void | addListener(RangeListener listener)
Register an object to handle range events.
|
void | addRangeListener(RangeListener listener)
Register an object to handle range events.
|
Adjustment | getAdjustment()
Get the Adjustment which is the "model" object for Range.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
boolean | getInverted()
Gets the vaue set by Range.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
UpdateType | getUpdatePolicy()
Gets the update policy
|
double | getValue()
Gets the current value of the range.
|
void | removeRangeListener(RangeListener listener)
Removes a listener
|
void | setAdjustment(Adjustment adjustment)
Sets the adjustment to be used as the "model" object for this range
widget. |
void | setIncrements(double step, double page)
Sets the step and page sizes for the range. |
void | setInverted(boolean setting)
Ranges normally move from lower to higher values as the slider moves from
top to bottom or left to right. |
void | setRange(double min, double max)
Sets the allowable values in the Range, and clamps the range value to be
between min and max. |
void | setUpdatePolicy(UpdateType policy)
Sets the update policy for the Adjustment |
void | setValue(double value)
Sets the current value of the range; if the value is outside the minimum
or maximum range values, it will be clamped to fit inside them. |
See Also: RangeListener
See Also: RangeListener
Returns: The adjustment model
Returns: True of the slider is inverted
Returns: The current update policy
Returns: Current value of the range.
See Also: addRangeListener
Parameters: adjustment The model to use
Parameters: step Step size page Page size
Parameters: setting TRUE to invert the range
Parameters: min Minimum range value max Maximum range value
Parameters: value The new value of the range