org.gnu.gtk
public abstract class Scale extends Range
The GtkScale widget is an abstract class, used only for deriving the subclasses {@link HScale} and {@link VScale}.
| 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 {@link org.gnu.pango.Layout} used to display the scale.
|
| int | getLayoutOffsetX()
Obtains the X coordinate where the scale will draw the
{@link org.gnu.pango.Layout} representing the text in the scale.
|
| int | getLayoutOffsetY()
Obtains the Y coordinate where the scale will draw the
{@link org.gnu.pango.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.
|
Returns: The {@link org.gnu.pango.Layout} for this scale, or NULL if the {@link #getDrawValue} is FALSE.
If {@link #getDrawValue} is FALSE, the return value is undefined.
If {@link #getDrawValue} is FALSE, the return value is undefined.
Parameters: digits The number of decimal places to display, e.g. use 1 to display 1.0, 2 to display 1.00 etc.
Parameters: setting If true, the value is displayed.
Parameters: pos The position in which the current value is displayed.