public class StringRenderer extends BoxRenderer implements InlineItem
Renderer.ReflowPhase
Modifier and Type | Field and Description |
---|---|
int |
baseline |
int |
continueFrom |
int |
fromPos |
boolean |
lastToken |
boolean |
lineBreak |
int |
toPos |
float |
x |
abb, offset, row
Constructor and Description |
---|
StringRenderer(Element element,
BoxRenderer parent,
RowRenderer row,
float width) |
StringRenderer(Element element,
BoxRenderer parent,
RowRenderer row,
int fromPos,
int toPos,
int continueFrom,
float width,
boolean lastToken,
boolean lineBreak) |
Modifier and Type | Method and Description |
---|---|
Renderer |
addChild(Renderer renderer) |
void |
assignToRow(RowRenderer row) |
boolean |
doesNotPrintToPage() |
StringBuilder |
dump(int mode,
int indent) |
boolean |
endsWithASpace() |
int |
getBaseline(Context context) |
int |
getChildrenNumber() |
int |
getHeight() |
int |
getID(Context context) |
int |
getMaxWidth(float base) |
int |
getMinWidth(float base) |
int |
getOuterHeight() |
float |
getOuterWidth() |
String |
getText(Context context) |
float |
getWidth() |
float |
getX() |
boolean |
isRTL() |
RStatus |
layout(Renderer.ReflowPhase phase) |
RStatus |
render() |
RStatus |
render(TargetRenderContext ctx,
float quota,
boolean lastToken) |
void |
setX(float x) |
int |
spacesNum(boolean lastItem) |
int |
suppressShy() |
String |
toString() |
int |
trailingSpaces() |
int |
verticalOffset() |
addAbsChild, alignContentToPageBreaks, borderBottom, borderLeft, borderRight, borderTop, collapseBorders, containingBlock, createAssignedPageBreak, createAssignedPageBreak, createAssignedPageBreak, dashCalculator, expandHeight, findAutoPageBreaks, findParentRenderer, getAbsHorizontalPosition, getAbsVerticalPosition, getChildAt, getContentHeight, getContentWidth, getExtraBottomOffset, getOffsetInRow, getParentForAbs, getScrollbarWidth, getTextBaseline, hasBackground, hasBorder, hasPadding, hasPercentualWidth, hasWidthBase, horizontalExtent, isAbsPositioned, isAvoidPageBreak, isLastChild, isOutOfFlowPositioned, isRelPositioned, logicalHeight, logicalMaxHeight, logicalMinHeight, marginBottom, marginLeft, marginRight, marginTop, moveChildUp, paddingBottom, paddingLeft, paddingRight, paddingTop, resetLayout, resetMinWidth, setHeight, setOuterHeight, setOuterWidth, setWidth, verticalMarginExtent
cleanup, getAbsPositionedBottomEdge, getClear, getContext, getDecoration, getDestinationRenderers, getDisplayType, getElement, getFloat, getFontSize, getHeightObj, getLang, getMaxHeightObj, getMaxWidthObj, getMinHeightObj, getMinWidthObj, getOuterMinWidth, getParent, getTitle, getWidthObj, isAutoWidth, isBody, isBoxSized, isFloating, isTable, isTaggedOutput, isTBRL, isUseAwt, reLayout, setParent, setUseAwt, updateHeights
public int fromPos
public int toPos
public int continueFrom
public float x
public int baseline
public boolean lastToken
public boolean lineBreak
public StringRenderer(Element element, BoxRenderer parent, RowRenderer row, int fromPos, int toPos, int continueFrom, float width, boolean lastToken, boolean lineBreak)
public StringRenderer(Element element, BoxRenderer parent, RowRenderer row, float width)
public RStatus layout(Renderer.ReflowPhase phase)
layout
in class BoxRenderer
public float getX()
getX
in interface InlineItem
getX
in class Renderer
public boolean doesNotPrintToPage() throws IOException
doesNotPrintToPage
in class Renderer
IOException
public int getBaseline(Context context)
getBaseline
in interface InlineItem
public float getWidth()
getWidth
in interface InlineItem
public float getOuterWidth()
getOuterWidth
in interface InlineItem
getOuterWidth
in class BoxRenderer
public int getMaxWidth(float base) throws ForcedTerminationException
getMaxWidth
in class Renderer
ForcedTerminationException
public int getMinWidth(float base) throws ForcedTerminationException
getMinWidth
in class Renderer
ForcedTerminationException
public int getHeight()
getHeight
in interface InlineItem
getHeight
in class BoxRenderer
public int getOuterHeight()
getOuterHeight
in interface InlineItem
getOuterHeight
in class BoxRenderer
public RStatus render(TargetRenderContext ctx, float quota, boolean lastToken)
public int verticalOffset()
verticalOffset
in class BoxRenderer
public int spacesNum(boolean lastItem)
public boolean endsWithASpace()
public int trailingSpaces()
public StringBuilder dump(int mode, int indent)
dump
in interface InlineItem
dump
in class Renderer
public Renderer addChild(Renderer renderer)
addChild
in class BoxRenderer
public int getChildrenNumber()
getChildrenNumber
in class BoxRenderer
public void setX(float x)
setX
in interface InlineItem
public void assignToRow(RowRenderer row)
assignToRow
in interface InlineItem
public int getID(Context context)
public boolean isRTL()
isRTL
in interface InlineItem
isRTL
in class BoxRenderer
public int suppressShy()
Revision 4.0.15 / 20220727-0149