| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private int | |
| private String | |
| private boolean | |
| private int | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkConsistency(Breaker.
Given the result of text breaking, makes some sanity preserving asserts to check the state of this object. |
| public String | |
| public int | |
| public int | |
| public String | |
| public int | |
| public int | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isFinishedInCharBreakingMode()
If this is true, it means we finished in char breaking mode because a word was too large. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setFirstCharInLine(boolean
set to true if this is the first non-trimmable
character in a line. isFirstChar)
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| _end | back to summary |
|---|---|
| private int _end | |
| _endsOnNL | back to summary |
|---|---|
| private boolean _endsOnNL | |
| _endsOnSoftHyphen | back to summary |
|---|---|
| private boolean _endsOnSoftHyphen | |
| _endsOnWordBreak | back to summary |
|---|---|
| private boolean _endsOnWordBreak | |
| _finishedInCharBreakingMode | back to summary |
|---|---|
| private boolean _finishedInCharBreakingMode | |
| _isFirstChar | back to summary |
|---|---|
| private boolean _isFirstChar | |
| _lastNewLineStartPosition | back to summary |
|---|---|
| private int _lastNewLineStartPosition | |
| _master | back to summary |
|---|---|
| private String _master | |
| _needsNewLine | back to summary |
|---|---|
| private boolean _needsNewLine | |
| _newlineAttemptsForLastStartPosition | back to summary |
|---|---|
| private int _newlineAttemptsForLastStartPosition | |
| _nextWidth | back to summary |
|---|---|
| private int _nextWidth | |
| _savedEnd | back to summary |
|---|---|
| private int _savedEnd | |
| _start | back to summary |
|---|---|
| private int _start | |
| _unbreakable | back to summary |
|---|---|
| private boolean _unbreakable | |
| _width | back to summary |
|---|---|
| private int _width | |
| LineBreakContext | back to summary |
|---|---|
| public LineBreakContext() | |
| checkConsistency | back to summary |
|---|---|
| public void checkConsistency(Breaker. Given the result of text breaking, makes some sanity preserving asserts to check the state of this object. | |
| getCalculatedSubstring | back to summary |
|---|---|
| public String getCalculatedSubstring() | |
| getEnd | back to summary |
|---|---|
| public int getEnd() | |
| getLast | back to summary |
|---|---|
| public int getLast() | |
| getMaster | back to summary |
|---|---|
| public String getMaster() | |
| getNextWidth | back to summary |
|---|---|
| public int getNextWidth() If needs newline, returns the graphics width of the next unbreakable sequence. We use this to test if we should actually put in a newline before a long word when break-word is on. If getNextWidth would fit on an empty line we put in the new line else we split in the long word immediately. | |
| getStart | back to summary |
|---|---|
| public int getStart() | |
| getStartSubstring | back to summary |
|---|---|
| public String getStartSubstring() | |
| getWidth | back to summary |
|---|---|
| public int getWidth() | |
| isEndsOnNL | back to summary |
|---|---|
| public boolean isEndsOnNL() | |
| isEndsOnSoftHyphen | back to summary |
|---|---|
| public boolean isEndsOnSoftHyphen() | |
| isEndsOnWordBreak | back to summary |
|---|---|
| public boolean isEndsOnWordBreak() | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() | |
| isFinishedInCharBreakingMode | back to summary |
|---|---|
| public boolean isFinishedInCharBreakingMode() If this is true, it means we finished in char breaking mode because a word was too large. The next line should begin in char breaking mode. | |
| isFirstCharInLine | back to summary |
|---|---|
public boolean isFirstCharInLine()
| |
| isNeedsNewLine | back to summary |
|---|---|
| public boolean isNeedsNewLine() | |
| isUnbreakable | back to summary |
|---|---|
| public boolean isUnbreakable() | |
| newLine | back to summary |
|---|---|
| public void newLine() Record a newline attempt. This should be called at each newline and then possibleEndlessLoop method can be called to check if excessive attempts have been made to output the same character on newlines. | |
| possibleEndlessLoop | back to summary |
|---|---|
public boolean possibleEndlessLoop()
| |
| reset | back to summary |
|---|---|
| public void reset() | |
| resetEnd | back to summary |
|---|---|
| public void resetEnd() | |
| saveEnd | back to summary |
|---|---|
| public void saveEnd() | |
| setEnd | back to summary |
|---|---|
| public void setEnd(int end) | |
| setEndsOnNL | back to summary |
|---|---|
| public void setEndsOnNL(boolean b) | |
| setEndsOnSoftHyphen | back to summary |
|---|---|
| public void setEndsOnSoftHyphen(boolean b) | |
| setEndsOnWordBreak | back to summary |
|---|---|
| public void setEndsOnWordBreak(boolean _endsOnWordBreak) | |
| setFinishedInCharBreakingMode | back to summary |
|---|---|
| public void setFinishedInCharBreakingMode(boolean mode) | |
| setFirstCharInLine | back to summary |
|---|---|
public void setFirstCharInLine(boolean isFirstChar)
| |
| setMaster | back to summary |
|---|---|
| public void setMaster(String master) | |
| setNeedsNewLine | back to summary |
|---|---|
| public void setNeedsNewLine(boolean needsLineBreak) | |
| setNextWidth | back to summary |
|---|---|
| public void setNextWidth(int nextWidth) | |
| setStart | back to summary |
|---|---|
| public void setStart(int start) | |
| setUnbreakable | back to summary |
|---|---|
| public void setUnbreakable(boolean unbreakable) | |
| setWidth | back to summary |
|---|---|
| public void setWidth(int width) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final LineBreakContext. | |
| public static final LineBreakContext. | |
| public static final LineBreakContext. | |
| public static final LineBreakContext. | |
| public static final LineBreakContext. | |
| public static final LineBreakContext. | |
| public static final LineBreakContext. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LineBreakContext. | |
| public static LineBreakContext. |
| CHAR_BREAKING_FINISHED | back to summary |
|---|---|
| public static final LineBreakContext. | |
| CHAR_BREAKING_FOUND_WORD_BREAK | back to summary |
|---|---|
| public static final LineBreakContext. | |
| CHAR_BREAKING_NEED_NEW_LINE | back to summary |
|---|---|
| public static final LineBreakContext. | |
| CHAR_BREAKING_UNBREAKABLE | back to summary |
|---|---|
| public static final LineBreakContext. | |
| WORD_BREAKING_FINISHED | back to summary |
|---|---|
| public static final LineBreakContext. | |
| WORD_BREAKING_NEED_NEW_LINE | back to summary |
|---|---|
| public static final LineBreakContext. | |
| WORD_BREAKING_UNBREAKABLE | back to summary |
|---|---|
| public static final LineBreakContext. | |
| LineBreakResult | back to summary |
|---|---|
| private LineBreakResult() | |
| valueOf | back to summary |
|---|---|
| public static LineBreakContext. | |
| values | back to summary |
|---|---|
| public static LineBreakContext. | |