Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Range
public abstract class Range
extends Widget
HScale
, HScrollBar
, VScale
, VScrollBar
Method Summary | |
void |
|
void |
|
Adjustment |
|
Class |
|
EventType |
|
boolean |
|
static Type |
|
UpdateType |
|
double |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public void addListener(RangeListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle range events.
- See Also:
RangeListener
public void addRangeListener(RangeListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle range events.
- See Also:
RangeListener
public Adjustment getAdjustment()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Get theAdjustment
which is the "model" object for Range.
- Returns:
- The adjustment model
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Widget
public boolean getInverted()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the vaue set bysetInverted(boolean)
.
- Returns:
- True of the slider is inverted
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public UpdateType getUpdatePolicy()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the update policy
- Returns:
- The current update policy
public double getValue()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the current value of the range.
- Returns:
- Current value of the range.
public void removeRangeListener(RangeListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listener
- See Also:
addRangeListener(RangeListener)
public void setAdjustment(Adjustment adjustment)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the adjustment to be used as the "model" object for this range widget. The adjustment indicates the current range value, the minimum and maximum range values, the step/page increments used for keybindings and scrolling, and the page size. The page size is normally 0 forScale
and nonzero forScrollBar
, and indicates the size of the visible area of the widget being scrolled. The page size affects the size of the scrollbar slider.
- Parameters:
adjustment
- The model to use
public void setIncrements(double step, double page)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the step and page sizes for the range. The step size is used when the user clicks theScrollBar
arrows or movesScale
via arrow keys. The page size is used for example when moving via Page Up or Page Down keys.
- Parameters:
step
- Step sizepage
- Page size
public void setInverted(boolean setting)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Ranges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or left.
- Parameters:
setting
- TRUE to invert the range
public void setRange(double min, double max)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the allowable values in the Range, and clamps the range value to be between min and max. (If the range has a non-zero page size, it is clamped between min and max - page-size.)
- Parameters:
min
- Minimum range valuemax
- Maximum range value
public void setUpdatePolicy(UpdateType policy)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the update policy for the Adjustment
public void setValue(double value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
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. An event is called if the value changes.
- Parameters:
value
- The new value of the range