public abstract class AbstractElement extends Object implements Element
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALIGN |
static String |
DEFAULT_IMG_ALIGN |
static int |
LAYOUT_FINALIZE_PARENT_UNKNOWN |
static int |
LAYOUT_HEADER |
static int |
LAYOUT_NORMAL |
static int |
LAYOUT_PARENT_WIDTH_UNKNOWN |
HtmlTag |
tag |
| Constructor and Description |
|---|
AbstractElement(BranchElement parent,
Style style,
HtmlTag tag,
Document document) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChild, getChildAt, getChildCount, hasChildTagspublic static final int LAYOUT_NORMAL
public static final int LAYOUT_PARENT_WIDTH_UNKNOWN
public static final int LAYOUT_FINALIZE_PARENT_UNKNOWN
public static final int LAYOUT_HEADER
public static final String DEFAULT_ALIGN
public static final String DEFAULT_IMG_ALIGN
public HtmlTag tag
public AbstractElement(BranchElement parent, Style style, HtmlTag tag, Document document)
public Context getContext()
getContext in interface Elementpublic boolean isImplicit()
isImplicit in interface Elementpublic com.pd4ml.css.CSSName getDisplayType()
getDisplayType in interface Elementpublic String getContent()
getContent in interface HtmlElementpublic Document getDocument()
getDocument in interface Elementpublic BranchElement getParent()
getParent in interface ElementgetParent in interface HtmlElementpublic BlockElement getBlock()
public void setParent(BranchElement element)
public Element previousSibling()
previousSibling in interface Elementpublic com.pd4ml.fonts.CachedFontMetrics getFontMetrics()
getFontMetrics in interface Elementpublic float getFontSize()
getFontSize in interface Elementpublic float getRemBase()
getRemBase in interface Elementpublic float getLineHeight()
getLineHeight in interface Elementpublic Length getLineHeightObj()
public Length getLogicalWidth()
getLogicalWidth in interface Elementpublic String getName()
getName in interface HtmlElementpublic List<Element> getChildren()
getChildren in interface Elementpublic Element getPrevChild(Element element)
getPrevChild in interface Elementpublic void removeEmptyInlineChildElements()
removeEmptyInlineChildElements in interface Elementpublic List<Element> getChildrenFlow(List<Element> flow, TargetRenderContext ctx)
getChildrenFlow in interface Elementpublic void substitutePlaceholders(String page, String total)
substitutePlaceholders in interface Elementpublic void substituteTocPlaceholders(Context ctx, Map<String,String> map)
substituteTocPlaceholders in interface Elementpublic ContentElement getLastContentElementOfBlock()
getLastContentElementOfBlock in interface Elementpublic ContentElement getLastContentElement()
public boolean hasBorders()
hasBorders in interface Elementpublic BoxLengths getBorders()
getBorders in interface Elementpublic boolean keepPhysicalUnits()
keepPhysicalUnits in interface Elementpublic boolean isRelPositioned()
isRelPositioned in interface Elementpublic boolean isAbsPositioned()
isAbsPositioned in interface Elementpublic int getPositioning()
public boolean isTBRL()
public com.pd4ml.css.CSSValue pageBreakBeforeObj()
pageBreakBeforeObj in interface Elementpublic com.pd4ml.css.CSSValue pageBreakAfterObj()
pageBreakAfterObj in interface Elementpublic boolean hasBothCoordinates()
hasBothCoordinates in interface Elementpublic boolean hasRtlContent()
hasRtlContent in interface Elementpublic Style.WhiteSpace whiteSpace()
whiteSpace in interface Elementpublic Style.TextAlign textAlign()
public Style.TextAlign textAlign(Style.TextAlign def)
public Style.Floating getFloat()
public int getTextDecorationType()
public int getWordBreakType()
public String wordBreak()
public int getTextTransformType()
public String getTextTransform()
Revision 4.0.15 / 20220727-0149