Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Adjustment
public class Adjustment
extends GtkObject
SpinButton
, Range
, HScrollBar
, VScrollBar
, HScale
, VScale
Constructor Summary | |
| |
|
Method Summary | |
void |
|
void |
|
static Adjustment |
|
Class |
|
EventType |
|
double |
|
double |
|
double |
|
double |
|
static Type |
|
double |
|
double |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public Adjustment(Handle handle)
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.
public Adjustment(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)
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 adjustment
- Parameters:
value
- The initial value.lower
- The minimum value.upper
- The maximum value.stepIncrement
- The step increment.pageIncrement
- The page increment.pageSize
- The page size.
public void addListener(AdjustmentListener listener)
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
public void clampPage(double lower, double upper)
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.
public static Adjustment getAdjustment(Handle handle)
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.
public Class getEventListenerClass(String signal)
Event Handling
public EventType getEventType(String signal)
public double getLower()
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 adjustment
- Returns:
- The minimum value of the adjustment.
public double getPageIncrement()
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.
public double getPageSize()
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.
public double getStepIncrement()
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.
public static Type getType()
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.
public double getUpper()
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.
public double getValue()
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.
public void handleChanged()
public void removeListener(AdjustmentListener listener)
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 listener
- See Also:
addListener(AdjustmentListener)
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)
public void setValue(double 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.
Sets the GtkAdjustment value.