public class LineBreakContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LineBreakContext.LineBreakResult |
| Constructor and Description |
|---|
LineBreakContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConsistency(Breaker.BreakTextResult breakResult)
Given the result of text breaking, makes some sanity preserving
asserts to check the state of this object.
|
String |
getCalculatedSubstring() |
int |
getEnd() |
int |
getLast() |
String |
getMaster() |
int |
getNextWidth()
If needs newline, returns the graphics width of the next unbreakable sequence.
|
int |
getStart() |
String |
getStartSubstring() |
int |
getWidth() |
boolean |
isEndsOnNL() |
boolean |
isEndsOnSoftHyphen() |
boolean |
isEndsOnWordBreak() |
boolean |
isFinished() |
boolean |
isFinishedInCharBreakingMode()
If this is true, it means we finished in char breaking mode because
a word was too large.
|
boolean |
isFirstCharInLine() |
boolean |
isNeedsNewLine() |
boolean |
isUnbreakable() |
void |
newLine()
Record a newline attempt.
|
boolean |
possibleEndlessLoop()
See
newLine() |
void |
reset() |
void |
resetEnd() |
void |
saveEnd() |
void |
setEnd(int end) |
void |
setEndsOnNL(boolean b) |
void |
setEndsOnSoftHyphen(boolean b) |
void |
setEndsOnWordBreak(boolean _endsOnWordBreak) |
void |
setFinishedInCharBreakingMode(boolean mode) |
void |
setFirstCharInLine(boolean isFirstChar) |
void |
setMaster(String master) |
void |
setNeedsNewLine(boolean needsLineBreak) |
void |
setNextWidth(int nextWidth) |
void |
setStart(int start) |
void |
setUnbreakable(boolean unbreakable) |
void |
setWidth(int width) |
public void reset()
public void newLine()
public boolean possibleEndlessLoop()
newLine()public int getLast()
public int getEnd()
public void setEnd(int end)
public String getMaster()
public void setMaster(String master)
public int getStart()
public void setStart(int start)
public String getStartSubstring()
public String getCalculatedSubstring()
public boolean isUnbreakable()
public void setUnbreakable(boolean unbreakable)
public boolean isNeedsNewLine()
public void setNeedsNewLine(boolean needsLineBreak)
public int getWidth()
public void setWidth(int width)
public boolean isFinished()
public void resetEnd()
public void saveEnd()
public boolean isEndsOnNL()
public void setEndsOnNL(boolean b)
public boolean isEndsOnSoftHyphen()
public void setEndsOnSoftHyphen(boolean b)
public int getNextWidth()
public void setNextWidth(int nextWidth)
public boolean isEndsOnWordBreak()
public void setEndsOnWordBreak(boolean _endsOnWordBreak)
public void setFinishedInCharBreakingMode(boolean mode)
public boolean isFinishedInCharBreakingMode()
public boolean isFirstCharInLine()
public void setFirstCharInLine(boolean isFirstChar)
isFirstChar - set to true if this is the first non-trimmable
character in a line.public void checkConsistency(Breaker.BreakTextResult breakResult)
Copyright © 2004–2025. All rights reserved.