Interface BreakOpportunityProducer
- All Superinterfaces:
ClassificationProducer
,Cloneable
- All Known Implementing Classes:
LineBreakProducer
,WordBreakProducer
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
FieldsModifier and TypeFieldDescriptionstatic final int
Breaks allowed, it is an generic position.static final int
Break allowed, this is after a line is complete or a forced linebreak has been encountered.static final int
Never do any breaking.static final int
Break allowed, this is after a syllable is complete.static final int
Break 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
-
Field Details
-
BREAK_NEVER
static final int BREAK_NEVERNever do any breaking.- See Also:
-
BREAK_CHAR
static final int BREAK_CHARBreaks allowed, it is an generic position.- See Also:
-
BREAK_SYLLABLE
static final int BREAK_SYLLABLEBreak allowed, this is after a syllable is complete.- See Also:
-
BREAK_WORD
static final int BREAK_WORDBreak allowed, this is after a word is complete or a whitespace has been encountered.- See Also:
-
BREAK_LINE
static final int BREAK_LINEBreak allowed, this is after a line is complete or a forced linebreak has been encountered.- See Also:
-
-
Method Details
-
createBreakOpportunity
int createBreakOpportunity(int codepoint) -
clone
- Specified by:
clone
in interfaceClassificationProducer
- Throws:
CloneNotSupportedException
-
reset
void reset()
-