public static enum WAbstractSlider.Direction extends java.lang.Enum<WAbstractSlider.Direction>
For example, a slider whose value grows towards the right faces right.
The default direction for vertical sliders is UP and
the one for horizontal sliders is RIGHT.
| Modifier and Type | Method and Description |
|---|---|
Axis |
getAxis()
Gets the direction's axis.
|
boolean |
isInverted()
Returns whether this slider is inverted.
|
static WAbstractSlider.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WAbstractSlider.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WAbstractSlider.Direction UP
public static final WAbstractSlider.Direction DOWN
public static final WAbstractSlider.Direction LEFT
public static final WAbstractSlider.Direction RIGHT
public static WAbstractSlider.Direction[] values()
for (WAbstractSlider.Direction c : WAbstractSlider.Direction.values()) System.out.println(c);
public static WAbstractSlider.Direction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Axis getAxis()
public boolean isInverted()
An inverted slider will have reversed keyboard control.