|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Writing Mode is not a datatype recognized in XSL-FO. However, its definition in the standard makes it a de facto compound data type. It is discussed in the XSL-FO Standard 1.0 at Section 7.27.7 and at Appendix A.1. Please note that most applications using members of this class will not want to deal with the different ipd and shift values for odd and even line numbers. In that case, it is recommended that they simply use the odd value for each.
Method Summary | |
byte |
getAbsoluteAxis(byte relativeAxis)
Converts a relative axis(block-progression or inline-progress) to an absolute axis (horizontal or vertical) for this writing mode. |
byte |
getAbsoluteDirection(byte relativeDir)
Given a relative direction, this method returns the corresponding absolute direction in this writing mode. |
byte |
getAbsoluteDirFromRelativeAxis(byte relativeAxis)
Given a relative axis, this method returns the related absolute direction that applies to that axis. |
byte |
getAfter()
Tells which absolute direction is the "before" direction. |
byte |
getBefore()
Tells which absolute direction is the "before" direction. |
byte |
getBottom()
Tells which relative direction is the "bottom" direction. |
byte |
getBPAxis()
Tells which axis (horizontal or vertical) is the block-progression axis. |
byte |
getBPDirection()
Returns the block-progression-direction for this writing-mode. |
int |
getCorresponding(int inputDirection)
If given a relative direction, this method returns the corresponding absolute direction; if given an absolute direction, this method returns the corresponding relative direction. |
byte |
getEnd()
Tells which absolute direction is the "end" direction. |
byte |
getHorizontalAxis()
Tells which axis (block-progression or inline-progression) is the horizontal axis. |
byte |
getIPAxis()
Tells which axis (horizontal or vertical) is the inline-progression axis. |
byte |
getIPDirectionEven()
Returns the inline-progression-direction for even-numbered lines for this writing-mode. |
byte |
getIPDirectionOdd()
Returns the inline-progression-direction for odd-numbered lines for this writing-mode. |
byte |
getLeft()
Tells which relative direction is the "left" direction. |
byte |
getRelativeAxis(byte absoluteAxis)
Converts an absolute axis(horizontal or vertical) to a relative axis (inline-progression or block-progression) for this writing mode. |
byte |
getRelativeDirection(byte absoluteDir)
Given an absolute direction, this method returns the corresponding relative direction for this writing-mode. |
byte |
getRight()
Tells which relative direction is the "right" direction. |
byte |
getShiftEven()
Returns the shift-direction for even-numbered lines for this writing-mode. |
byte |
getShiftOdd()
Returns the shift-direction for odd-numbered lines for this writing-mode. |
byte |
getStart()
Tells which absolute direction is the "start" direction. |
byte |
getTop()
Tells which relative direction is the "top" direction. |
byte |
getVerticalAxis()
Tells which axis (block-progression or inline-progression) is the vertical axis. |
boolean |
isPaired()
Indicates whether characters are written in pairs in this writing-mode. |
Method Detail |
public byte getBPDirection()
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
.public byte getIPDirectionEven()
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
.public byte getIPDirectionOdd()
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
.public boolean isPaired()
public byte getShiftEven()
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
.public byte getShiftOdd()
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
.public byte getHorizontalAxis()
Constants.AXIS_BP
or Constants.AXIS_IP
, or
-1 if writing-mode is invalid.public byte getVerticalAxis()
Constants.AXIS_BP
or Constants.AXIS_IP
, or
-1 if writing-mode is invalid.public byte getBPAxis()
Constants.AXIS_HORIZONTAL
or
Constants.AXIS_VERTICAL
, or -1 if writing-mode is invalid.public byte getIPAxis()
Constants.AXIS_HORIZONTAL
or
Constants.AXIS_VERTICAL
, or -1 if writing-mode is invalid.public byte getAbsoluteAxis(byte relativeAxis)
relativeAxis
- Either Constants.AXIS_BP
or
Constants.AXIS_IP
.
Constants.AXIS_HORIZONTAL
or
Constants.AXIS_VERTICAL
, or -1 if writing-mode or input is
invalid.public byte getRelativeAxis(byte absoluteAxis)
absoluteAxis
- Either Constants.AXIS_HORIZONTAL
or
Constants.AXIS_VERTICAL
.
Constants.AXIS_IP
or Constants.AXIS_BP
, or
-1 if writing-mode or input is invalid.public byte getStart()
Constants.DIRECTION_LEFT
,
Constants.DIRECTION_RIGHT
, Constants.DIRECTION_TOP
,
Constants.DIRECTION_BOTTOM
, or -1 if writing-mode is invalid.public byte getEnd()
Constants.DIRECTION_LEFT
,
Constants.DIRECTION_RIGHT
, Constants.DIRECTION_TOP
,
Constants.DIRECTION_BOTTOM
, or -1 if writing-mode
is invalid.public byte getBefore()
Constants.DIRECTION_LEFT
,
Constants.DIRECTION_RIGHT
, Constants.DIRECTION_TOP
,
Constants.DIRECTION_BOTTOM
, or -1 if writing-mode is invalid.public byte getAfter()
Constants.DIRECTION_LEFT
,
Constants.DIRECTION_RIGHT
, Constants.DIRECTION_TOP
,
Constants.DIRECTION_BOTTOM
, or -1 if writing-mode is invalid.public byte getLeft()
Constants.DIRECTION_START
,
Constants.DIRECTION_END
, Constants.DIRECTION_BEFORE
,
Constants.DIRECTION_AFTER
, or -1 if writing-mode is invalid.public byte getRight()
Constants.DIRECTION_START
,
Constants.DIRECTION_END
, Constants.DIRECTION_BEFORE
,
Constants.DIRECTION_AFTER
, or -1 if writing-mode is invalid.public byte getTop()
Constants.DIRECTION_START
,
Constants.DIRECTION_END
, Constants.DIRECTION_BEFORE
,
Constants.DIRECTION_AFTER
, or -1 if writing-mode is invalid.public byte getBottom()
Constants.DIRECTION_START
,
Constants.DIRECTION_END
, Constants.DIRECTION_BEFORE
,
Constants.DIRECTION_AFTER
, or -1 if writing-mode is invalid.public byte getAbsoluteDirection(byte relativeDir)
relativeDir
- One of Constants.DIRECTION_START
,
Constants.DIRECTION_END
, Constants.DIRECTION_BEFORE
,
or Constants.DIRECTION_AFTER
.
Constants.DIRECTION_LEFT
, Constants.DIRECTION_RIGHT
,
Constants.DIRECTION_TOP
, Constants.DIRECTION_BOTTOM
, or
-1 for invalid input or writing mode.public byte getAbsoluteDirFromRelativeAxis(byte relativeAxis)
relativeAxis
- One of Constants.AXIS_BP
or
Constants.AXIS_IP
.
Constants.DIRECTION_TOP_TO_BOTTOM
,
Constants.DIRECTION_BOTTOM_TO_TOP
,
Constants.DIRECTION_LEFT_TO_RIGHT
, or
Constants.DIRECTION_RIGHT_TO_LEFT
,
or -1 for invalid input or writing mode.public byte getRelativeDirection(byte absoluteDir)
absoluteDir
- One of Constants.DIRECTION_LEFT
,
Constants.DIRECTION_RIGHT
, Constants.DIRECTION_TOP
,
or Constants.DIRECTION_BOTTOM
.
Constants.DIRECTION_START
, Constants.DIRECTION_END
,
Constants.DIRECTION_BEFORE
, Constants.DIRECTION_AFTER
, or
-1 for invalid input or writing mode.public int getCorresponding(int inputDirection)
inputDirection
- Either a relative direction constant
(Constants.DIRECTION_START
, Constants.DIRECTION_END
,
Constants.DIRECTION_BEFORE
, or
Constants.DIRECTION_AFTER
), or an absolute direction constant
(Constants.DIRECTION_LEFT
, Constants.DIRECTION_RIGHT
,
Constants.DIRECTION_TOP
, Constants.DIRECTION_BOTTOM
) to
be converted.
|
aXSL API 0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.