org.apache.fop.text.linebreak
Class LineBreakStatus
java.lang.Object
org.apache.fop.text.linebreak.LineBreakStatus
public class LineBreakStatus
extends java.lang.Object
This class is meant for supporting the Unicode line breaking algorithm.
See
UTR 14.
LineBreakStatus() - Resets the class to the same state as if new LineBreakStatus() had just been called.
|
byte | nextChar(char c) - Check whether a line break may happen.
|
void | reset() - Reset the status.
|
COMBINING_INDIRECT_BREAK
public static final byte COMBINING_INDIRECT_BREAK
Constant indicating a Combining Indirect Break
COMBINING_PROHIBITED_BREAK
public static final byte COMBINING_PROHIBITED_BREAK
Constant indicating a Combining Prohibited Break
DIRECT_BREAK
public static final byte DIRECT_BREAK
Constant indicating a Direct Break
EXPLICIT_BREAK
public static final byte EXPLICIT_BREAK
Constant indicating a Explicit Break
INDIRECT_BREAK
public static final byte INDIRECT_BREAK
Constant indicating an Indirect Break
PROHIBITED_BREAK
public static final byte PROHIBITED_BREAK
Constant indicating a Prohibited Break
LineBreakStatus
public LineBreakStatus()
Resets the class to the same state as if new LineBreakStatus() had just been called.
nextChar
public byte nextChar(char c)
Check whether a line break may happen.
The function returns the line breaking status of the point before the given character.
The algorithm is the table driven algorithm described in the Unicode
technical report #14.
The pair table is taken from @see LineBreakUtils
TODO: Better handling for AI, SA, CB and other line break classes.
- the break action to be taken
reset
public void reset()
Reset the status.
This method will reset the status to the initial state. It is meant
for recycling objects.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.