Package org.apache.fop.traits
Class Direction
java.lang.Object
org.apache.fop.traits.TraitEnum
org.apache.fop.traits.Direction
- All Implemented Interfaces:
Serializable
Enumeration class for direction traits, namely {inline,block}-progression-direction
and shift-direction.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Direction
direction: bottom-to-topprivate static final String[]
private static final int[]
private static final Direction[]
static final Direction
direction: left-to-rightstatic final Direction
direction: right-to-leftprivate static final long
static final Direction
direction: top-to-bottom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if direction is horizontal or not.boolean
Determine if direction is vertical or not.private Object
toString()
static Direction
valueOf
(int enumValue) Returns the enumeration/singleton object based on its name.static Direction
Returns the enumeration/singleton object based on its name.Methods inherited from class org.apache.fop.traits.TraitEnum
getEnumValue, getName
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DIRECTION_NAMES
-
DIRECTION_VALUES
private static final int[] DIRECTION_VALUES -
LR
direction: left-to-right -
RL
direction: right-to-left -
TB
direction: top-to-bottom -
BT
direction: bottom-to-top -
DIRECTIONS
-
-
Constructor Details
-
Direction
private Direction(int index)
-
-
Method Details
-
isVertical
public boolean isVertical()Determine if direction is vertical or not.- Returns:
- true if vertical
-
isHorizontal
public boolean isHorizontal()Determine if direction is horizontal or not.- Returns:
- true if horizontal
-
valueOf
Returns the enumeration/singleton object based on its name.- Parameters:
name
- the name of the enumeration value- Returns:
- the enumeration object
-
valueOf
Returns the enumeration/singleton object based on its name.- Parameters:
enumValue
- the enumeration value- Returns:
- the enumeration object
-
readResolve
- Throws:
ObjectStreamException
-
toString
-