|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Adjustment
This object stores geometry information, such as upper and lower bounds, step and page increments, and the size of a page. Other object use an Adjustment object to store their internal dimenstion settings. It also is passed as an argument to specify geometry.
SpinButton
,
Range
,
HScrollBar
,
VScrollBar
,
HScale
Constructor Summary | |
Adjustment(double value,
double lower,
double upper,
double stepIncrement,
double pageIncrement,
double pageSize)
Constructs a new adjustment |
|
Adjustment(int handle)
Construct a new Adjustment from a handle to a native resource. |
Method Summary | |
void |
addListener(AdjustmentListener listener)
Register an object to handle spin events. |
void |
clampPage(double lower,
double upper)
Updates the GtkAdjustment value to ensure that the range between lower and upper is in the current page (i.e. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
GtkEventType |
getEventType(java.lang.String signal)
|
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
double |
getValue()
Gets the current value of the adjustment. |
void |
removeListener(AdjustmentListener listener)
Removes a listener |
void |
setValue(double value)
Sets the GtkAdjustment value. |
Methods inherited from class org.gnu.gtk.GtkObject |
destroy |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Adjustment(int handle)
public Adjustment(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)
value
- The initial value.lower
- The minimum value.upper
- The maximum value.stepIncrement
- The step increment.pageIncrement
- The page increment.pageSize
- The page size.Method Detail |
public void setValue(double value)
public double getValue()
public void clampPage(double lower, double upper)
public java.lang.Class getEventListenerClass(java.lang.String signal)
public GtkEventType getEventType(java.lang.String signal)
public void addListener(AdjustmentListener listener)
SpinListener
public void removeListener(AdjustmentListener listener)
addListener(AdjustmentListener)
public static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |