new TextDrawUtils()
Help methods to draw text.
- Source:
Methods
-
(static) getActualDirection(direction, parentDirection)
-
Turn line break direction to actual direction value.
Parameters:
Name Type Description direction
Int parentDirection
Int - Source:
-
(static) getOppositeDirection(direction) → {Int}
-
Get opposite direction.
Parameters:
Name Type Description direction
Int - Source:
Returns:
- Type
- Int
-
(static) isHorizontalLine(charDirection) → {Bool}
-
Check if a text line is in horizontal direction (LTR or RTL).
Parameters:
Name Type Description charDirection
Object - Source:
Returns:
- Type
- Bool
-
(static) isOppositeDirection(direction1, direction2) → {Bool}
-
Check if two directions are opposite.
Parameters:
Name Type Description direction1
Int direction2
Int - Source:
Returns:
- Type
- Bool
-
(static) isVerticalLine(charDirection) → {Bool}
-
Check if a text line is in vertical direction (TTB or BTT).
Parameters:
Name Type Description charDirection
Object - Source:
Returns:
- Type
- Bool