|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Adjustment
public class Adjustment
This object stores geometry information, such as upper and lower bounds, step and page increments, and the size of a page. Other objects use an Adjustment object to store their internal dimension settings. It also is passed as an argument to specify geometry.
SpinButton
,
Range
,
HScrollBar
,
VScrollBar
,
HScale
,
VScale
Constructor Summary | |
---|---|
Adjustment(double value,
double lower,
double upper,
double stepIncrement,
double pageIncrement,
double pageSize)
Constructs a new adjustment |
|
Adjustment(org.gnu.glib.Handle 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 (ie between value and value + pageSize). |
static Adjustment |
getAdjustment(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Event Handling |
EventType |
getEventType(java.lang.String signal)
|
double |
getLower()
Gets the minimum value of the adjustment |
double |
getPageIncrement()
Gets the page increment of the adjustment. |
double |
getPageSize()
Gets the page size of the adjustment. |
double |
getStepIncrement()
Gets the step increment of the adjustment. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
double |
getUpper()
Gets the maximum value of the adjustment. |
double |
getValue()
Gets the current value of the adjustment. |
void |
handleChanged()
|
void |
removeListener(AdjustmentListener listener)
Removes a listener |
void |
setLower(double lower)
|
void |
setPageIncrement(double pageIncrement)
|
void |
setPageSize(double pageSize)
|
void |
setStepIncrement(double stepIncrement)
|
void |
setUpper(double upper)
|
void |
setValue(double value)
Sets the GtkAdjustment value. |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Adjustment(org.gnu.glib.Handle 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 static Adjustment getAdjustment(org.gnu.glib.Handle handle)
public void setValue(double value)
public double getValue()
public double getLower()
public double getUpper()
upper - page-size
if the page-size property
is nonzero.
public double getStepIncrement()
public double getPageIncrement()
public double getPageSize()
public void clampPage(double lower, double upper)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class GObject
public EventType getEventType(java.lang.String signal)
getEventType
in class GObject
public void addListener(AdjustmentListener listener)
SpinListener
public void removeListener(AdjustmentListener listener)
addListener(AdjustmentListener)
public void handleChanged()
public static Type getType()
public void setLower(double lower)
public void setPageIncrement(double pageIncrement)
public void setPageSize(double pageSize)
public void setStepIncrement(double stepIncrement)
public void setUpper(double upper)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |