| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static enum | |
| private static class | |
| private static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final char | |
| public static final Breaker. | |
| public static final Breaker. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static Breaker. | breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput)
|
| pack-priv static LineBreakContext. | doBreakCharacters(String currentString, FSTextBreaker lineIterator, FSTextBreaker charIterator, LineBreakContext context, int avail, float letterSpacing, ToIntFunction<String> measurer)
Breaks at most one word (until the next word break) going character by character to see what will fit in. |
| private static LineBreakContext. | doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, boolean tryToBreakAnywhere)
|
| public static LineBreakContext. | doBreakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style, Breaker.
|
| pack-priv static LineBreakContext. | doBreakTextWords(String currentString, LineBreakContext context, int avail, FSTextBreaker iterator, float letterSpacing, ToIntFunction<String> measurer)
|
| public static FSTextBreaker | |
| private static int | |
| public static FSTextBreaker | |
| public static int | getTextWidthWithLetterSpacing(CssContext c, FSFont font, String text, float letterSpacing)
Gets the width of a string with letter spacing factored in. Favor this method over using the text renderer directly. |
| private static Breaker. | toBreakTextResult(LineBreakContext.
Converts a LineBreakResult returned from doBreakText in word-wrapping mode to a BreakTextResult. |
| SOFT_HYPHEN | back to summary |
|---|---|
| public static final char SOFT_HYPHEN | |
| STANDARD_CHARACTER_BREAKER | back to summary |
|---|---|
| public static final Breaker. | |
| STANDARD_LINE_BREAKER | back to summary |
|---|---|
| public static final Breaker. | |
| Breaker | back to summary |
|---|---|
| public Breaker() | |
| breakFirstLetter | back to summary |
|---|---|
| public static void breakFirstLetter(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style) | |
| breakText | back to summary |
|---|---|
| public static Breaker. | |
| doBreakCharacters | back to summary |
|---|---|
| pack-priv static LineBreakContext. Breaks at most one word (until the next word break) going character by character to see what will fit in. | |
| doBreakText | back to summary |
|---|---|
| private static LineBreakContext. | |
| doBreakText | back to summary |
|---|---|
| public static LineBreakContext. | |
| doBreakTextWords | back to summary |
|---|---|
| pack-priv static LineBreakContext. | |
| getCharacterBreakStream | back to summary |
|---|---|
| public static FSTextBreaker getCharacterBreakStream(String currentString, SharedContext sharedContext) | |
| getFirstLetterEnd | back to summary |
|---|---|
| private static int getFirstLetterEnd(String text, int start) | |
| getLineBreakStream | back to summary |
|---|---|
| public static FSTextBreaker getLineBreakStream(String s, SharedContext shared) | |
| getTextWidthWithLetterSpacing | back to summary |
|---|---|
| public static int getTextWidthWithLetterSpacing(CssContext c, FSFont font, String text, float letterSpacing) Gets the width of a string with letter spacing factored in. Favor this method over using the text renderer directly. | |
| toBreakTextResult | back to summary |
|---|---|
| private static Breaker. Converts a LineBreakResult returned from doBreakText in word-wrapping mode to a BreakTextResult. Throws a runtime exception if unexpected result found. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| graphicsLength | back to summary |
|---|---|
| pack-priv int graphicsLength | |
| isSoftHyphenBreak | back to summary |
|---|---|
| pack-priv boolean isSoftHyphenBreak | |
| left | back to summary |
|---|---|
| pack-priv int left | |
| right | back to summary |
|---|---|
| pack-priv int right | |
| withHyphenGraphicsLength | back to summary |
|---|---|
| pack-priv int withHyphenGraphicsLength | |
| AppBreakOpportunity | back to summary |
|---|---|
| private AppBreakOpportunity() | |
| copyTo | back to summary |
|---|---|
| pack-priv void copyTo(Breaker. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Breaker. | CHAR_UNBREAKABLE_BUT_CONSUMED
Not a single char fitted, but we consumed one character anyway. |
| public static final Breaker. | CONTINUE_CHAR_BREAKING_ON_NL
In char breaking mode, need a newline before continuing. |
| public static final Breaker. | CONTINUE_WORD_BREAKING_ON_NL
In word breaking mode, need a newline before continuing. |
| public static final Breaker. | DANGER_RECONSUME_CHAR_ON_NL
DANGER: Last char did not fit and we are directing the parent method to reconsume char on a newline. |
| public static final Breaker. | DANGER_RECONSUME_WORD_ON_NL
DANGER: Last word did not fit and we are directing the parent method to reconsume word on a newline. |
| public static final Breaker. | FINISHED
Has completely consumed the string. |
| public static final Breaker. | WORD_UNBREAKABLE_BUT_CONSUMED
Not a single word fitted, but we consumed a word anyway. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Breaker. | |
| public static Breaker. |
| CHAR_UNBREAKABLE_BUT_CONSUMED | back to summary |
|---|---|
| public static final Breaker. Not a single char fitted, but we consumed one character anyway. | |
| CONTINUE_CHAR_BREAKING_ON_NL | back to summary |
|---|---|
| public static final Breaker. In char breaking mode, need a newline before continuing. At least one character has been consumed. | |
| CONTINUE_WORD_BREAKING_ON_NL | back to summary |
|---|---|
| public static final Breaker. In word breaking mode, need a newline before continuing. At least one word has been consumed. | |
| DANGER_RECONSUME_CHAR_ON_NL | back to summary |
|---|---|
| public static final Breaker. DANGER: Last char did not fit and we are directing the parent method to reconsume char on a newline. Example, below floats. | |
| DANGER_RECONSUME_WORD_ON_NL | back to summary |
|---|---|
| public static final Breaker. DANGER: Last word did not fit and we are directing the parent method to reconsume word on a newline. Example, below floats. | |
| FINISHED | back to summary |
|---|---|
| public static final Breaker. Has completely consumed the string. | |
| WORD_UNBREAKABLE_BUT_CONSUMED | back to summary |
|---|---|
| public static final Breaker. Not a single word fitted, but we consumed a word anyway. Only returned when word-wrap is not break-word. | |
| BreakTextResult | back to summary |
|---|---|
| private BreakTextResult() | |
| valueOf | back to summary |
|---|---|
| public static Breaker. | |
| values | back to summary |
|---|---|
| public static Breaker. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FSTextBreaker | getBreaker(String str, SharedContext sharedContext)
Implements com.
|
| CharacterBreakerSupplier | back to summary |
|---|---|
| private CharacterBreakerSupplier() | |
| getBreaker | back to summary |
|---|---|
| public FSTextBreaker getBreaker(String str, SharedContext sharedContext) Implements com.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public FSTextBreaker | getBreaker(String str, SharedContext sharedContext)
Implements com.
|
| LineBreakerSupplier | back to summary |
|---|---|
| private LineBreakerSupplier() | |
| getBreaker | back to summary |
|---|---|
| public FSTextBreaker getBreaker(String str, SharedContext sharedContext) Implements com.
| |
| Modifier and Type | Method and Description |
|---|---|
| public FSTextBreaker |
| getBreaker | back to summary |
|---|---|
| public FSTextBreaker getBreaker(String str, SharedContext sharedContext) | |