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, wait
addChild, getChildAt, getChildCount, hasChildTags
public 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 Element
public boolean isImplicit()
isImplicit
in interface Element
public com.pd4ml.css.CSSName getDisplayType()
getDisplayType
in interface Element
public String getContent()
getContent
in interface HtmlElement
public Document getDocument()
getDocument
in interface Element
public BranchElement getParent()
getParent
in interface Element
getParent
in interface HtmlElement
public BlockElement getBlock()
public void setParent(BranchElement element)
public Element previousSibling()
previousSibling
in interface Element
public com.pd4ml.fonts.CachedFontMetrics getFontMetrics()
getFontMetrics
in interface Element
public float getFontSize()
getFontSize
in interface Element
public float getRemBase()
getRemBase
in interface Element
public float getLineHeight()
getLineHeight
in interface Element
public Length getLineHeightObj()
public Length getLogicalWidth()
getLogicalWidth
in interface Element
public String getName()
getName
in interface HtmlElement
public List<Element> getChildren()
getChildren
in interface Element
public Element getPrevChild(Element element)
getPrevChild
in interface Element
public void removeEmptyInlineChildElements()
removeEmptyInlineChildElements
in interface Element
public List<Element> getChildrenFlow(List<Element> flow, TargetRenderContext ctx)
getChildrenFlow
in interface Element
public void substitutePlaceholders(String page, String total)
substitutePlaceholders
in interface Element
public void substituteTocPlaceholders(Context ctx, Map<String,String> map)
substituteTocPlaceholders
in interface Element
public ContentElement getLastContentElementOfBlock()
getLastContentElementOfBlock
in interface Element
public ContentElement getLastContentElement()
public boolean hasBorders()
hasBorders
in interface Element
public BoxLengths getBorders()
getBorders
in interface Element
public boolean keepPhysicalUnits()
keepPhysicalUnits
in interface Element
public boolean isRelPositioned()
isRelPositioned
in interface Element
public boolean isAbsPositioned()
isAbsPositioned
in interface Element
public int getPositioning()
public boolean isTBRL()
public com.pd4ml.css.CSSValue pageBreakBeforeObj()
pageBreakBeforeObj
in interface Element
public com.pd4ml.css.CSSValue pageBreakAfterObj()
pageBreakAfterObj
in interface Element
public boolean hasBothCoordinates()
hasBothCoordinates
in interface Element
public boolean hasRtlContent()
hasRtlContent
in interface Element
public Style.WhiteSpace whiteSpace()
whiteSpace
in interface Element
public 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