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 intBREAK_CHAR
Breaks allowed, it is an generic position.
static intBREAK_LINE
Break allowed, this is after a line is complete or a forced linebreak has been encountered.
static intBREAK_NEVER
Never do any breaking.
static intBREAK_SYLLABLE
Break allowed, this is after a syllable is complete.
static intBREAK_WORD
Break allowed, this is after a word is complete or a whitespace has been encountered.
Method Summary
Objectclone()
intcreateBreakOpportunity(int codepoint)
voidreset()

Field Detail

BREAK_CHAR

public static final int BREAK_CHAR
Breaks allowed, it is an generic position.

BREAK_LINE

public static final int BREAK_LINE
Break allowed, this is after a line is complete or a forced linebreak has been encountered.

BREAK_NEVER

public static final int BREAK_NEVER
Never do any breaking.

BREAK_SYLLABLE

public static final int BREAK_SYLLABLE
Break allowed, this is after a syllable is complete.

BREAK_WORD

public static final int BREAK_WORD
Break allowed, this is after a word is complete or a whitespace has been encountered.

Method Detail

clone

public Object clone()

createBreakOpportunity

public int createBreakOpportunity(int codepoint)

reset

public void reset()