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
org.gnu.gtk.Scale
public abstract class Scale
extends Range
Range
,
in addition to the methods for Scale itself. To set the value of a scale, you
would normally use Range.setValue(double)
. To detect changes to the
value, add RangeListener object to the widget.
The GtkScale widget is an abstract class, used only for deriving the
subclasses HScale
and VScale
.
Method Summary | |
boolean |
|
Class |
|
EventType |
|
Layout |
|
int |
|
int |
|
static Type |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Range | |
addListener , addRangeListener , getAdjustment , getEventListenerClass , getEventType , getInverted , getType , getUpdatePolicy , getValue , removeRangeListener , setAdjustment , setIncrements , setInverted , setRange , setUpdatePolicy , setValue |
public boolean getDrawValue()
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.
Returns whether the current value is displayed as a string next to the slider.
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Range
public Layout getLayout()
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 theLayout
used to display the scale.
- Returns:
- The
Layout
for this scale, or NULL if thegetDrawValue()
is FALSE.
public int getLayoutOffsetX()
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.
Obtains the X coordinate where the scale will draw theLayout
representing the text in the scale. IfgetDrawValue()
is FALSE, the return value is undefined.
public int getLayoutOffsetY()
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.
Obtains the Y coordinate where the scale will draw theLayout
representing the text in the scale. IfgetDrawValue()
is FALSE, the return value is undefined.
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 void removeFormatListener()
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 the format listener
public void setDigits(int digits)
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 number of decimal places that are displayed in the value. Also causes the value of the adjustment to be rounded off to this number of digits, so the retrieved value matches the value the user saw.
- Parameters:
digits
- The number of decimal places to display, e.g. use 1 to display 1.0, 2 to display 1.00 etc.
public void setDrawValue(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.
Specifies whether the current value is displayed as a string next to the slider.
- Parameters:
setting
- If true, the value is displayed.
public void setFormatListener(ScaleListener 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.
Sets a listener to be used when a format-value request is called.
public void setValuePosition(PositionType pos)
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 position in which the current value is displayed.
- Parameters:
pos
- The position in which the current value is displayed.