java-gnome version 4.0.15

org.gnome.gtk
Class Scale

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.freedesktop.bindings.Proxy
          extended by org.gnome.glib.Object
              extended by org.gnome.gtk.Object
                  extended by org.gnome.gtk.Widget
                      extended by org.gnome.gtk.Range
                          extended by org.gnome.gtk.Scale
Direct Known Subclasses:
HScale, VScale

public abstract class Scale
extends Range

A slider control which allows the user to manipulate a numeric value. As with many other Widget hierarchies in GTK, there is a horizontal (HScale) and vertical (VScale) implementation for you to choose from.

The default position for the value to be displayed is TOP which may not be quite what you want. Use setValuePosition() to change it.

Otherwise, most of the useful methods (notably those relating to the value) are inherited from the parent class, Range.

Since:
4.0.6
Author:
Andrew Cowie

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gnome.gtk.Range
Range.ValueChanged
 
Nested classes/interfaces inherited from class org.gnome.gtk.Widget
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent
 
Method Summary
 void setDigits(int places)
          Specify the number of decimal places that will be shown in the value.
 void setValuePosition(PositionType position)
          Specify where the value will be drawn.
 
Methods inherited from class org.gnome.gtk.Range
connect, getInverted, getValue, setInverted, setValue
 
Methods inherited from class org.gnome.gtk.Widget
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setDigits

public void setDigits(int places)
Specify the number of decimal places that will be shown in the value. This also rounds the value so that when it is retrieved it will match what is displayed.

Since:
4.0.6

setValuePosition

public void setValuePosition(PositionType position)
Specify where the value will be drawn. TOP is the default.

Since:
4.0.6


java-gnome