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, verticalMarginExtentcleanup, 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, updateHeightspublic 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 BoxRendererpublic float getX()
getX in interface InlineItemgetX in class Rendererpublic boolean doesNotPrintToPage()
                           throws IOException
doesNotPrintToPage in class RendererIOExceptionpublic int getBaseline(Context context)
getBaseline in interface InlineItempublic float getWidth()
getWidth in interface InlineItempublic float getOuterWidth()
getOuterWidth in interface InlineItemgetOuterWidth in class BoxRendererpublic int getMaxWidth(float base)
                throws ForcedTerminationException
getMaxWidth in class RendererForcedTerminationExceptionpublic int getMinWidth(float base)
                throws ForcedTerminationException
getMinWidth in class RendererForcedTerminationExceptionpublic int getHeight()
getHeight in interface InlineItemgetHeight in class BoxRendererpublic int getOuterHeight()
getOuterHeight in interface InlineItemgetOuterHeight in class BoxRendererpublic RStatus render(TargetRenderContext ctx, float quota, boolean lastToken)
public int verticalOffset()
verticalOffset in class BoxRendererpublic int spacesNum(boolean lastItem)
public boolean endsWithASpace()
public int trailingSpaces()
public StringBuilder dump(int mode, int indent)
dump in interface InlineItemdump in class Rendererpublic Renderer addChild(Renderer renderer)
addChild in class BoxRendererpublic int getChildrenNumber()
getChildrenNumber in class BoxRendererpublic void setX(float x)
setX in interface InlineItempublic void assignToRow(RowRenderer row)
assignToRow in interface InlineItempublic int getID(Context context)
public boolean isRTL()
isRTL in interface InlineItemisRTL in class BoxRendererpublic int suppressShy()
Revision 4.0.15 / 20220727-0149