Interface BreakOpportunityProducer
-
- All Superinterfaces:
ClassificationProducer,java.lang.Cloneable
- All Known Implementing Classes:
LineBreakProducer,WordBreakProducer
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
Fields Modifier and Type Field Description static intBREAK_CHARBreaks allowed, it is an generic position.static intBREAK_LINEBreak allowed, this is after a line is complete or a forced linebreak has been encountered.static intBREAK_NEVERNever do any breaking.static intBREAK_SYLLABLEBreak allowed, this is after a syllable is complete.static intBREAK_WORDBreak allowed, this is after a word is complete or a whitespace has been encountered.-
Fields inherited from interface org.pentaho.reporting.libraries.fonts.text.ClassificationProducer
END_OF_TEXT, START_OF_TEXT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectclone()intcreateBreakOpportunity(int codepoint)voidreset()
-
-
-
Field Detail
-
BREAK_NEVER
static final int BREAK_NEVER
Never do any breaking.- See Also:
- Constant Field Values
-
BREAK_CHAR
static final int BREAK_CHAR
Breaks allowed, it is an generic position.- See Also:
- Constant Field Values
-
BREAK_SYLLABLE
static final int BREAK_SYLLABLE
Break allowed, this is after a syllable is complete.- See Also:
- Constant Field Values
-
BREAK_WORD
static final int BREAK_WORD
Break allowed, this is after a word is complete or a whitespace has been encountered.- See Also:
- Constant Field Values
-
BREAK_LINE
static final int BREAK_LINE
Break allowed, this is after a line is complete or a forced linebreak has been encountered.- See Also:
- Constant Field Values
-
-
Method Detail
-
createBreakOpportunity
int createBreakOpportunity(int codepoint)
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedException- Specified by:
clonein interfaceClassificationProducer- Throws:
java.lang.CloneNotSupportedException
-
reset
void reset()
-
-