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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if direction is horizontal or not.boolean
Determine if direction is vertical or not.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
-
LR
direction: left-to-right -
RL
direction: right-to-left -
TB
direction: top-to-bottom -
BT
direction: bottom-to-top
-
-
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
-
toString
-