Note
Only one of the styles HORIZONTAL and VERTICAL may be specified.
Important Note
This class is not intended to be subclassed.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSelectionListener(SelectionListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the user changes the receiver's value, by sending
it one of the messages defined in the |
| pack-priv static int | |
| pack-priv Point | computeSizeInPixels(int wHint, int hHint, boolean changed)
Overrides org. |
| pack-priv void | |
| public int | Returns: the incrementReturns the amount that the receiver's value will be modified by when the up/down (or right/left) arrows are pressed. |
| public int | |
| public int | |
| public int | Returns: the page incrementReturns the amount that the receiver's value will be modified by when the page increment/decrement areas are selected. |
| public int | |
| pack-priv long | |
| pack-priv void | |
| public void | removeSelectionListener(SelectionListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the user changes the receiver's value. |
| pack-priv Point | resizeCalculationsGTK3(long widget, int width, int height)
Overrides org. |
| public void | setIncrement(int
the new increment (must be greater than zero) increment)Sets the amount that the receiver's value will be modified by when the up/down (or right/left) arrows are pressed to the argument, which must be at least one. |
| public void | setMaximum(int
the new maximum, which must be greater than the current minimum value)Sets the maximum value that the receiver will allow. |
| public void | setMinimum(int
the new minimum, which must be nonnegative and less than the current maximum value)Sets the minimum value that the receiver will allow. |
| public void | setPageIncrement(int
the page increment (must be greater than zero) pageIncrement)Sets the amount that the receiver's value will be modified by when the page increment/decrement areas are selected to the argument, which must be at least one. |
| public void | setSelection(int
the new selection (must be zero or greater) value)Sets the 'selection', which is the receiver's value, to the argument which must be greater than or equal to zero. |
| Scale | back to summary |
|---|---|
| public Scale(Composite parent, int style) Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in
class
| |
| addSelectionListener | back to summary |
|---|---|
| public void addSelectionListener(SelectionListener listener) Adds the listener to the collection of listeners who will
be notified when the user changes the receiver's value, by sending
it one of the messages defined in the
| |
| checkStyle | back to summary |
|---|---|
| pack-priv static int checkStyle(int style) | |
| computeSizeInPixels | back to summary |
|---|---|
| pack-priv Point computeSizeInPixels(int wHint, int hHint, boolean changed) Overrides org.
| |
| createHandle | back to summary |
|---|---|
| pack-priv void createHandle(int index) Overrides org.
| |
| getIncrement | back to summary |
|---|---|
| public int getIncrement() Returns the amount that the receiver's value will be modified by when the up/down (or right/left) arrows are pressed.
| |
| getMaximum | back to summary |
|---|---|
| public int getMaximum() Returns the maximum value which the receiver will allow.
| |
| getMinimum | back to summary |
|---|---|
| public int getMinimum() Returns the minimum value which the receiver will allow.
| |
| getPageIncrement | back to summary |
|---|---|
| public int getPageIncrement() Returns the amount that the receiver's value will be modified by when the page increment/decrement areas are selected.
| |
| getSelection | back to summary |
|---|---|
| public int getSelection() Returns the 'selection', which is the receiver's position.
| |
| gtk_value_changed | back to summary |
|---|---|
| pack-priv long gtk_value_changed(long range) Overrides org.
| |
| hookEvents | back to summary |
|---|---|
| pack-priv void hookEvents() Overrides org.
| |
| removeSelectionListener | back to summary |
|---|---|
| public void removeSelectionListener(SelectionListener listener) Removes the listener from the collection of listeners who will be notified when the user changes the receiver's value.
| |
| resizeCalculationsGTK3 | back to summary |
|---|---|
| pack-priv Point resizeCalculationsGTK3(long widget, int width, int height) Overrides org.
| |
| setIncrement | back to summary |
|---|---|
| public void setIncrement(int increment) Sets the amount that the receiver's value will be modified by when the up/down (or right/left) arrows are pressed to the argument, which must be at least one.
| |
| setMaximum | back to summary |
|---|---|
| public void setMaximum(int value) Sets the maximum value that the receiver will allow. This new value will be ignored if it is not greater than the receiver's current minimum value. If the new maximum is applied then the receiver's selection value will be adjusted if necessary to fall within its new range.
| |
| setMinimum | back to summary |
|---|---|
| public void setMinimum(int value) Sets the minimum value that the receiver will allow. This new value will be ignored if it is negative or is not less than the receiver's current maximum value. If the new minimum is applied then the receiver's selection value will be adjusted if necessary to fall within its new range.
| |
| setPageIncrement | back to summary |
|---|---|
| public void setPageIncrement(int pageIncrement) Sets the amount that the receiver's value will be modified by when the page increment/decrement areas are selected to the argument, which must be at least one.
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(int value) Sets the 'selection', which is the receiver's value, to the argument which must be greater than or equal to zero.
| |