Package org.xhtmlrenderer.layout
Class LineBreakContext
java.lang.Object
org.xhtmlrenderer.layout.LineBreakContext
A bean which serves as a way for the layout code to pass information to the
line breaking code and for the line breaking code to pass instructions back
to the layout code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getEnd()
int
getLast()
int
getStart()
int
getWidth()
boolean
boolean
boolean
boolean
void
reset()
void
resetEnd()
void
saveEnd()
void
setEnd
(int end) void
setEndsOnNL
(boolean b) void
void
setNeedsNewLine
(boolean needsLineBreak) void
setStart
(int start) void
setTextNode
(Text _text) void
setUnbreakable
(boolean unbreakable) void
setWidth
(int width)
-
Constructor Details
-
LineBreakContext
public LineBreakContext()
-
-
Method Details
-
getLast
public int getLast() -
reset
public void reset() -
getEnd
public int getEnd() -
setEnd
public void setEnd(int end) -
getMaster
-
setMaster
-
getStart
public int getStart() -
setStart
public void setStart(int start) -
getStartSubstring
-
getCalculatedSubstring
-
isUnbreakable
public boolean isUnbreakable() -
setUnbreakable
public void setUnbreakable(boolean unbreakable) -
isNeedsNewLine
public boolean isNeedsNewLine() -
setNeedsNewLine
public void setNeedsNewLine(boolean needsLineBreak) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
isFinished
public boolean isFinished() -
resetEnd
public void resetEnd() -
saveEnd
public void saveEnd() -
isEndsOnNL
public boolean isEndsOnNL() -
setEndsOnNL
public void setEndsOnNL(boolean b) -
getTextNode
-
setTextNode
-