org.gnu.gtk
public abstract class Scale extends Range
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.Scale
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
The GtkScale widget is an abstract class, used only for deriving the subclasses HScale and VScale.
See Also: HScale
Method Summary | |
---|---|
boolean | getDrawValue()
Returns whether the current value is displayed as a string next to the
slider. |
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
Layout | getLayout()
Gets the Layout used to display the scale.
|
int | getLayoutOffsetX()
Obtains the X coordinate where the scale will draw the
Layout representing the text in the scale.
|
int | getLayoutOffsetY()
Obtains the Y coordinate where the scale will draw the
Layout representing the text in the scale.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | removeFormatListener()
Removes the format listener |
void | setDigits(int digits)
Sets the number of decimal places that are displayed in the value. |
void | setDrawValue(boolean setting)
Specifies whether the current value is displayed as a string next to the
slider.
|
void | setFormatListener(ScaleListener listener)
Sets a listener to be used when a format-value request is called. |
void | setValuePosition(PositionType pos)
Sets the position in which the current value is displayed.
|
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.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 Layout used to display the scale.Returns: The Layout for this scale, or NULL if the Scale is FALSE.
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 the Layout representing the text in the scale.If Scale is FALSE, the return value is undefined.
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 the Layout representing the text in the scale.If Scale is FALSE, the return value is undefined.
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.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 listenerDeprecated: 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.
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.
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.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.