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
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if direction is horizontal or not.booleanDetermine if direction is vertical or not.toString()static DirectionvalueOf(int enumValue) Returns the enumeration/singleton object based on its name.static DirectionReturns 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
-