org.gnu.gtk
public class Adjustment extends GtkObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.Adjustment
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
See Also: SpinButton Range HScrollBar VScrollBar HScale
Constructor Summary | |
---|---|
Adjustment(Handle handle)
Construct a new Adjustment from a handle to a native resource. | |
Adjustment(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)
Constructs a new adjustment
|
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(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
Class | getEventListenerClass(String signal)
Event Handling
|
EventType | getEventType(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. |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new Adjustment from a handle to a native resource.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Constructs a new adjustmentParameters: value The initial value. lower The minimum value. upper The maximum value. stepIncrement The step increment. pageIncrement The page increment. pageSize The page size.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle spin events.See Also: SpinListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Updates the GtkAdjustment value to ensure that the range between lower and upper is in the current page (ie between value and value + pageSize). If the range is larger than the page size, then only the start of it will be in the current page. A "changed" signal will be emitted if the value is changed.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the minimum value of the adjustmentReturns: The minimum value of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the page increment of the adjustment.Returns: The page increment of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a SpinButton.Returns: The page size of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the step increment of the adjustment.Returns: The step increment of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the maximum value of the adjustment. Note that values will be restricted byupper - page-size
if the page-size property
is nonzero.
Returns: The maximum value of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Gets the current value of the adjustment.Returns: The current value of the adjustment.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listenerSee Also: addListener
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the GtkAdjustment value.