public enum ScriptOrientation extends Enum<ScriptOrientation>
horizontally
in the direction from left to right
. However
various other scripts on the world work different. Some scripts are written from the right to the left
others vertically from the top to the bottom while the vertical rows may be ordered again from the left to
the right. The user expects the orientation of widgets ordered according to its script-system. ScriptOrientation
only specifies
the main direction for the layout. Enum Constant and Description |
---|
LEFT_TO_RIGHT
Script and layout goes horizontal from the left to the right.
|
RIGHT_TO_LEFT
Script and layout goes horizontal from the right to the left.
|
RIGHT_TO_LEFT_VERTICAL
Script and layout goes vertical from the top to the bottom, horizontal order goes from the right to the
left.
|
VERTICAL_LEFT_TO_RIGHT
Script and layout goes vertical from the top to the bottom, horizontal order goes from the left to the
right.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isHorizontal()
This method determines if the primary ordering of script and layout goes horizontally.
|
abstract boolean |
isLeftToRight()
This method determines if the horizontal ordering of script and layout goes from the left to the right or
vice versa.
|
static ScriptOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScriptOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScriptOrientation LEFT_TO_RIGHT
public static final ScriptOrientation RIGHT_TO_LEFT
public static final ScriptOrientation VERTICAL_LEFT_TO_RIGHT
public static final ScriptOrientation RIGHT_TO_LEFT_VERTICAL
public static ScriptOrientation[] values()
for (ScriptOrientation c : ScriptOrientation.values()) System.out.println(c);
public static ScriptOrientation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean isLeftToRight()
true
if horizontal ordering is left-to-right, false
for right-to-left.public abstract boolean isHorizontal()
true
if the primary ordering is horizontal, false
for vertical.Copyright © 2001–2016 mmm-Team. All rights reserved.