public final class ContentElement extends LeafElement
Modifier and Type | Field and Description |
---|---|
String |
originalContent |
DEFAULT_ALIGN, DEFAULT_IMG_ALIGN, LAYOUT_FINALIZE_PARENT_UNKNOWN, LAYOUT_HEADER, LAYOUT_NORMAL, LAYOUT_PARENT_WIDTH_UNKNOWN, tag
Constructor and Description |
---|
ContentElement(BranchElement parent,
HtmlTag tag,
String text,
Document document,
ContentElement prevContent) |
Modifier and Type | Method and Description |
---|---|
static boolean |
allowedBreakAfter(char c,
char next) |
String |
dump(int mode) |
Color |
getBackgroundColor() |
BoxLengths |
getBorders() |
Color |
getColor() |
String |
getContent() |
com.pd4ml.fonts.CachedFontMetrics |
getFontMetrics() |
boolean |
hasRtlContent() |
boolean |
hasVisibleContent() |
void |
substitutePlaceholders(String page,
String total) |
void |
substituteTocPlaceholders(Context ctx,
Map<String,String> map) |
static String |
supressWhitespaces(String content,
boolean pre,
boolean suppressLeadingWhitespaces) |
String |
toString() |
void |
trimTrailingWhitespace(Element follower,
boolean force) |
Style.WhiteSpace |
whiteSpace() |
addChild, getChildAt, getChildCount, getChildren, hasChildTags, isLeaf
getBlock, getChildrenFlow, getContentStyle, getContext, getDisplayType, getDocument, getFloat, getFontSize, getIndex, getLastContentElement, getLastContentElementOfBlock, getLineHeight, getLineHeightObj, getLogicalWidth, getName, getParent, getPositioning, getPrevChild, getRemBase, getTag, getTextDecorationType, getTextTransform, getTextTransformType, getWordBreakType, hasBorders, hasBothCoordinates, isAbsPositioned, isFloat, isImplicit, isRelPositioned, isRTL, isTBRL, keepPhysicalUnits, objectToLength, pageBreakAfterObj, pageBreakBeforeObj, previousSibling, removeEmptyInlineChildElements, setParent, style, textAlign, textAlign, wordBreak
public String originalContent
public ContentElement(BranchElement parent, HtmlTag tag, String text, Document document, ContentElement prevContent)
public BoxLengths getBorders()
getBorders
in interface Element
getBorders
in class AbstractElement
public com.pd4ml.fonts.CachedFontMetrics getFontMetrics()
getFontMetrics
in interface Element
getFontMetrics
in class AbstractElement
public String toString()
toString
in class AbstractElement
public boolean hasVisibleContent()
public Color getColor()
public Color getBackgroundColor()
public Style.WhiteSpace whiteSpace()
whiteSpace
in interface Element
whiteSpace
in class AbstractElement
public static boolean allowedBreakAfter(char c, char next)
public static String supressWhitespaces(String content, boolean pre, boolean suppressLeadingWhitespaces)
public String getContent()
getContent
in interface HtmlElement
getContent
in class LeafElement
public void substitutePlaceholders(String page, String total)
substitutePlaceholders
in interface Element
substitutePlaceholders
in class AbstractElement
public void substituteTocPlaceholders(Context ctx, Map<String,String> map)
substituteTocPlaceholders
in interface Element
substituteTocPlaceholders
in class AbstractElement
public void trimTrailingWhitespace(Element follower, boolean force)
public boolean hasRtlContent()
hasRtlContent
in interface Element
hasRtlContent
in class AbstractElement
public String dump(int mode)
dump
in interface Element
dump
in class AbstractElement
Revision 4.0.15 / 20220727-0149