|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Range
public abstract class Range
This is the base class for the group of widgets that involve graphic display and manipulation of a vale bounded within a specific minumum and maximum value.
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. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
boolean |
getInverted()
Gets the vaue set by setInverted(boolean) . |
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. |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Adjustment getAdjustment()
Adjustment
which is the "model" object for Range.
public void setUpdatePolicy(UpdateType policy)
public void setAdjustment(Adjustment adjustment)
Scale
and nonzero for ScrollBar
, and indicates the size
of the visible area of the widget being scrolled. The page size affects
the size of the scrollbar slider.
adjustment
- The model to usepublic void setInverted(boolean setting)
setting
- TRUE to invert the rangepublic boolean getInverted()
setInverted(boolean)
.
public UpdateType getUpdatePolicy()
public double getValue()
public void setIncrements(double step, double page)
ScrollBar
arrows or moves Scale
via
arrow keys. The page size is used for example when moving via Page Up or
Page Down keys.
step
- Step sizepage
- Page sizepublic void setRange(double min, double max)
min
- Minimum range valuemax
- Maximum range valuepublic void setValue(double value)
value
- The new value of the rangepublic void addListener(RangeListener listener)
RangeListener
public void addRangeListener(RangeListener listener)
RangeListener
public void removeRangeListener(RangeListener listener)
addRangeListener(RangeListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Widget
public EventType getEventType(java.lang.String signal)
getEventType
in class Widget
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |