org.pentaho.reporting.libraries.fonts.text.breaks
Interface BreakOpportunityProducer
public
interface
BreakOpportunityProducer
extends ClassificationProducer
Checks for break-opportunities. The break opportunity is always a break after
the last codepoint, under the condition, that this codepoint does not belong
to a grapheme cluster.
This means, if we test the sequence 'ab', we cannot be sure that the letter
'a' is breakable, unless we've seen 'b' and have verified that 'b' is no
extension or formatting character.
To use this producer properly, make sure that no extension characters get
fed into it.
Author: Thomas Morgner
Field Summary |
static int | BREAK_CHAR Breaks allowed, it is an generic position. |
static int | BREAK_LINE
Break allowed, this is after a line is complete or a forced linebreak has
been encountered. |
static int | BREAK_NEVER Never do any breaking. |
static int | BREAK_SYLLABLE Break allowed, this is after a syllable is complete. |
static int | BREAK_WORD
Break allowed, this is after a word is complete or a whitespace has been
encountered. |
public static final int BREAK_CHAR
Breaks allowed, it is an generic position.
public static final int BREAK_LINE
Break allowed, this is after a line is complete or a forced linebreak has
been encountered.
public static final int BREAK_NEVER
Never do any breaking.
public static final int BREAK_SYLLABLE
Break allowed, this is after a syllable is complete.
public static final int BREAK_WORD
Break allowed, this is after a word is complete or a whitespace has been
encountered.
public Object clone()
public int createBreakOpportunity(int codepoint)
public void reset()