Package org.apache.fop.text.linebreak
Class LineBreakUtils
java.lang.Object
org.apache.fop.text.linebreak.LineBreakUtils
Line breaking utilities.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
Break class constantstatic final byte
Break class constantstatic final byte
Break class constantstatic final byte
Break class constantstatic final byte
Break class constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Linebreak property constantstatic final byte
Break class constant -
Method Summary
Modifier and TypeMethodDescriptionstatic byte
getLineBreakPairProperty
(int lineBreakPropertyBefore, int lineBreakPropertyAfter) Return the break class constant for the given pair of linebreak property constants.static byte
getLineBreakProperty
(char c) Return the linebreak property constant for the givenchar
static String
getLineBreakPropertyLongName
(byte i) Return the long name for the linebreak property corresponding to the given symbolic constant.static String
getLineBreakPropertyShortName
(byte i) Return the short name for the linebreak property corresponding to the given symbolic constant.
-
Field Details
-
DIRECT_BREAK
public static final byte DIRECT_BREAKBreak class constant- See Also:
-
INDIRECT_BREAK
public static final byte INDIRECT_BREAKBreak class constant- See Also:
-
COMBINING_INDIRECT_BREAK
public static final byte COMBINING_INDIRECT_BREAKBreak class constant- See Also:
-
COMBINING_PROHIBITED_BREAK
public static final byte COMBINING_PROHIBITED_BREAKBreak class constant- See Also:
-
PROHIBITED_BREAK
public static final byte PROHIBITED_BREAKBreak class constant- See Also:
-
EXPLICIT_BREAK
public static final byte EXPLICIT_BREAKBreak class constant- See Also:
-
LINE_BREAK_PROPERTY_AI
public static final byte LINE_BREAK_PROPERTY_AILinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_AL
public static final byte LINE_BREAK_PROPERTY_ALLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_B2
public static final byte LINE_BREAK_PROPERTY_B2Linebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_BA
public static final byte LINE_BREAK_PROPERTY_BALinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_BB
public static final byte LINE_BREAK_PROPERTY_BBLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_BK
public static final byte LINE_BREAK_PROPERTY_BKLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_CB
public static final byte LINE_BREAK_PROPERTY_CBLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_CL
public static final byte LINE_BREAK_PROPERTY_CLLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_CM
public static final byte LINE_BREAK_PROPERTY_CMLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_CP
public static final byte LINE_BREAK_PROPERTY_CPLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_CR
public static final byte LINE_BREAK_PROPERTY_CRLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_EX
public static final byte LINE_BREAK_PROPERTY_EXLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_GL
public static final byte LINE_BREAK_PROPERTY_GLLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_H2
public static final byte LINE_BREAK_PROPERTY_H2Linebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_H3
public static final byte LINE_BREAK_PROPERTY_H3Linebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_HY
public static final byte LINE_BREAK_PROPERTY_HYLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_ID
public static final byte LINE_BREAK_PROPERTY_IDLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_IN
public static final byte LINE_BREAK_PROPERTY_INLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_IS
public static final byte LINE_BREAK_PROPERTY_ISLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_JL
public static final byte LINE_BREAK_PROPERTY_JLLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_JT
public static final byte LINE_BREAK_PROPERTY_JTLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_JV
public static final byte LINE_BREAK_PROPERTY_JVLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_LF
public static final byte LINE_BREAK_PROPERTY_LFLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_NL
public static final byte LINE_BREAK_PROPERTY_NLLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_NS
public static final byte LINE_BREAK_PROPERTY_NSLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_NU
public static final byte LINE_BREAK_PROPERTY_NULinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_OP
public static final byte LINE_BREAK_PROPERTY_OPLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_PO
public static final byte LINE_BREAK_PROPERTY_POLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_PR
public static final byte LINE_BREAK_PROPERTY_PRLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_QU
public static final byte LINE_BREAK_PROPERTY_QULinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_SA
public static final byte LINE_BREAK_PROPERTY_SALinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_SG
public static final byte LINE_BREAK_PROPERTY_SGLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_SP
public static final byte LINE_BREAK_PROPERTY_SPLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_SY
public static final byte LINE_BREAK_PROPERTY_SYLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_WJ
public static final byte LINE_BREAK_PROPERTY_WJLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_XX
public static final byte LINE_BREAK_PROPERTY_XXLinebreak property constant- See Also:
-
LINE_BREAK_PROPERTY_ZW
public static final byte LINE_BREAK_PROPERTY_ZWLinebreak property constant- See Also:
-
-
Method Details
-
getLineBreakPropertyShortName
Return the short name for the linebreak property corresponding to the given symbolic constant.- Parameters:
i
- the numeric value of the linebreak property- Returns:
- the short name of the linebreak property
-
getLineBreakPropertyLongName
Return the long name for the linebreak property corresponding to the given symbolic constant.- Parameters:
i
- the numeric value of the linebreak property- Returns:
- the long name of the linebreak property
-
getLineBreakProperty
public static byte getLineBreakProperty(char c) Return the linebreak property constant for the givenchar
- Parameters:
c
- thechar
whose linebreak property to return- Returns:
- the constant representing the linebreak property
-
getLineBreakPairProperty
public static byte getLineBreakPairProperty(int lineBreakPropertyBefore, int lineBreakPropertyAfter) Return the break class constant for the given pair of linebreak property constants.- Parameters:
lineBreakPropertyBefore
- the linebreak property for the first character in a two-character sequencelineBreakPropertyAfter
- the linebreak property for the second character in a two-character sequence- Returns:
- the constant representing the break class
-