java-gnome version 4.0.19

org.gnome.gtk
Class HScale

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
                              extended by org.gnome.gtk.HScale

public class HScale
extends Scale

A horizontal slider allowing you to visually represent data and offer the user the ability to manipulate it. See Scale and Range for the methods used to manipulate instances of these classes.

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
 
Nested classes/interfaces inherited from class org.gnome.gtk.Object
Object.Destroy
 
Constructor Summary
HScale(int min, int max, int step)
          Create a new HScale allowing the user to enter a number a number between min and max, sliding in increments of step.
 
Method Summary
 
Methods inherited from class org.gnome.gtk.Scale
getDrawValue, setDigits, setDrawValue, setValuePosition
 
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, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
 
Methods inherited from class org.gnome.gtk.Object
connect, destroy
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HScale

public HScale(int min,
              int max,
              int step)
Create a new HScale allowing the user to enter a number a number between min and max, sliding in increments of step.

The internal algorithms work best if step is specified as a power of 10. That shouldn't hassle you, as you can round the value showing in the HScale with setDigits(). And in any case, step only impacts the jumps that are made if the HScale is changed via the Left and Right key strokes.

Since:
4.0.6


java-gnome