public abstract class Positioner extends JsContainer implements com.itextpdf.text.pdf.interfaces.IAccessibleElement
Modifier and Type | Class and Description |
---|---|
class |
Positioner.PositionedLayoutComparator |
class |
Positioner.RowLayoutComparator |
Modifier and Type | Field and Description |
---|---|
protected HashMap |
accessibleAttributes |
protected FormNode |
assistTag |
protected BreakConditions |
breakConditions |
boolean |
buildNextInstance |
protected com.itextpdf.text.pdf.PdfContentByte |
canvas |
protected List<Positioner> |
childElements |
XFARectangle |
contentArea |
protected DataTag |
data |
protected Integer |
endPageNumber |
protected com.itextpdf.text.AccessibleElementId |
id |
protected Map<String,Positioner> |
immediateChildren |
protected boolean |
isContentTagged |
protected boolean |
isEmpty |
protected boolean |
isTagged |
protected KeepConditions |
keepConditions |
protected boolean |
layoutOutOfDate |
protected OverflowConditions |
overflowConditions |
protected HashSet |
overflowedContentAreas |
protected Positioner |
parent |
protected PositionResult.State |
positionState |
protected com.itextpdf.text.pdf.PdfName |
role |
protected Integer |
startPageNumber |
protected Integer |
startSheetNumber |
protected XFATemplateTag |
template |
protected com.itextpdf.awt.geom.AffineTransform |
transformation |
containerJsObject
instanceManagerByTemplate, nodeJsObject, nodes, protoTemplate, tag, textJsObject, UNIVERSAL_PROTOTYPE_ROOT, utf8Charset
flattenerContext, shortcuts, treeJsObject
rhinoJsObject
Constructor and Description |
---|
Positioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parentNode) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(JsTree child) |
void |
addOverflowedPageContentArea(PageArea pageArea) |
protected abstract void |
adjustContentArea() |
protected void |
adjustContentAreaHeight(float newHeight) |
protected void |
adjustContentAreaUry(float ury) |
void |
adjustLayout() |
void |
applyMargins(XFARectangle rectangle) |
protected void |
applyRotation() |
void |
applyTransformationToRectangle(XFARectangle bbox) |
void |
applyTransformationToRectangle(XFARectangle bbox, boolean inverse) |
void |
applyTranslation(float xtr, float ytr) |
abstract Positioner |
checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
protected boolean |
doesNotFitContentArea(float bottomMargin, float contentAreaBottom) |
void |
drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) |
void |
drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle rec, XFARectangle parentBoundingBox) |
Object |
execCalculate() |
void |
execEvent(String activity, String ref) |
void |
execValidate() |
Object |
fetchDataNode(boolean createNewIfNotExists) |
DataTag |
fetchDataTagRecursively()
This method gets the dataNode, creating the missing nodes in the path on demand.
|
protected Positioner |
findNextBreakableElement() |
protected Positioner |
findNextBreakableElement(int startFrom) |
XFARectangle |
getAbsoluteBbox() |
XFARectangle |
getAbsoluteBbox(boolean ignorePagenationTransformation) |
com.itextpdf.text.pdf.PdfObject |
getAccessibleAttribute(com.itextpdf.text.pdf.PdfName key) |
HashMap |
getAccessibleAttributes() |
protected String |
getAlternateText() |
XFARectangle |
getBBox() |
float |
getBottomInset() |
BreakConditions |
getBreakConditions() |
protected List<ScriptString> |
getCalculationScripts() |
com.itextpdf.text.pdf.PdfContentByte |
getCanvas() |
protected String |
getCaptionText() |
List<Positioner> |
getChildren() |
XFARectangle |
getContentArea() |
DataTag |
getData() |
Integer |
getEndPageNumber() |
com.itextpdf.awt.geom.AffineTransform |
getFinalTransformation(boolean ignorePagenationTransformation) |
FlattenerContext |
getFlattenerContext() |
Object |
getFormattedValue() |
com.itextpdf.text.AccessibleElementId |
getId() |
Integer |
getIndependentRotation() |
KeepConditions |
getKeepConditions() |
protected Positioner |
getLastPositionerBeforeInd(int childIndex, String childLayout) |
Positioner |
getLastPositionerInLayout(String layout) |
String |
getLayout() |
String |
getName() |
OverflowConditions |
getOverflowConditions() |
Positioner |
getParent() |
PositionResult.State |
getPositionState() |
Positioner |
getPreviousPositionerInLayout(Positioner childPositioner, String layout) |
Object |
getRawValue() |
com.itextpdf.text.pdf.PdfName |
getRole() |
List<ScriptString> |
getScriptsByActivity(String activity, String ref) |
Integer |
getStartPageNumber() |
Integer |
getStartSheetNumber() |
XFATemplateTag |
getTemplate() |
String |
getTemplateId() |
com.itextpdf.awt.geom.AffineTransform |
getTransformation() |
protected List<ScriptString> |
getValidateScripts() |
void |
initContentArea(Float parentLlx, Float parentUry) |
protected void |
initLayout() |
protected void |
initMinWContentAreaProperty() |
protected boolean |
isBackgroundOrBorderExist() |
abstract boolean |
isBreakable() |
boolean |
isContentTagged() |
boolean |
isCurrentPageContentAreaOverflowed(PageArea pageArea) |
boolean |
isEmpty() |
boolean |
isInline() |
boolean |
isInvisible() |
boolean |
isLayoutOutOfDate() |
protected boolean |
isPositionedPartially() |
boolean |
isVisible() |
protected void |
move(float dx, float dy) |
void |
place() |
void |
place(Float x, Float y) |
abstract Positioner |
position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
void |
put(String name, org.mozilla.javascript.Scriptable start, Object value) |
abstract void |
relayout(boolean forceLayout) |
void |
removeChild(int index) |
protected void |
restorePosState(com.itextpdf.text.pdf.PdfContentByte canvas) |
protected void |
savePosState(com.itextpdf.text.pdf.PdfContentByte canvas) |
void |
setAccessibleAttribute(com.itextpdf.text.pdf.PdfName key, com.itextpdf.text.pdf.PdfObject value) |
void |
setBreakConditions(BreakConditions breakConditions) |
void |
setCanvas(com.itextpdf.text.pdf.PdfContentByte canvas) |
void |
setData(DataTag data) |
void |
setEndPageNumber(Integer endPageNumber) |
void |
setId(com.itextpdf.text.AccessibleElementId id) |
void |
setLayoutOutOfDate(boolean layoutOutOfDate) |
void |
setParent(Positioner parent) |
void |
setPositionState(PositionResult.State positionState) |
void |
setRawValue(Object rawValue) |
void |
setRole(com.itextpdf.text.pdf.PdfName role) |
void |
setStartPageNumber(Integer startPageNumber) |
void |
setTransformation(com.itextpdf.awt.geom.AffineTransform transform) |
void |
setWidth(Float w) |
void |
setX(Float x) |
protected boolean |
supportLegacyPlusPrint() |
XFARectangle |
unapplyMargins(XFARectangle rectangle) |
execInitialize, execOwnEvent, get$, getDataNode, getFillColor, setFillColor
addAfterMe, addChild, addChild, addInstanceManagerForTemplate, addVariable, get, getChild, getInstanceManagerByTemplate, getIsContainer, getIsNull, getNodes, getNotNullXFAPrototype, getOneOfChild, getProtoTemplate, getPrototypeObject, getTag, isHidden, isInactive, isPropertySpecified, loadXML, putCallback, retrieveAttribute, retrieveAttributes, retrieveChild, retrieveChild, retrieveChildren, retrieveChildren, retrieveContent, retrieveName, retrieveParent, retrieveRichText, retrieveValue, setOneOfChild, setProtoTemplate
getAll, getIndex, getNamePropertyByNameKey, getSomExpression, resolveNode, resolveNodeInt, resolveNodes, resolveNodesInt, searchNode, searchNodeByClassName, searchNodeById, searchNodeByName, searchNodeDown, searchNodes, searchNodesById, searchNodesByName, splitSOM, strictSearchNode, strictSearchNodeByName
defineConstantProperty, defineProperty, evaluateScript, evaluateScript, getClassName, getDefaultValue, getOwnProperty, getProperty, getStringProperty, isUndefined, unwrap
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassName
protected XFATemplateTag template
protected DataTag data
public XFARectangle contentArea
protected Positioner parent
protected List<Positioner> childElements
protected BreakConditions breakConditions
protected KeepConditions keepConditions
protected OverflowConditions overflowConditions
protected com.itextpdf.awt.geom.AffineTransform transformation
protected com.itextpdf.text.pdf.PdfName role
protected com.itextpdf.text.AccessibleElementId id
protected HashMapaccessibleAttributes
protected com.itextpdf.text.pdf.PdfContentByte canvas
protected boolean isEmpty
protected boolean isContentTagged
protected boolean isTagged
protected Integer startPageNumber
protected Integer startSheetNumber
protected Integer endPageNumber
protected FormNode assistTag
protected boolean layoutOutOfDate
protected HashSetoverflowedContentAreas
protected Map<String,Positioner> immediateChildren
protected PositionResult.State positionState
public boolean buildNextInstance
public Positioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parentNode)
public Integer getIndependentRotation()
public void place()
protected void initMinWContentAreaProperty()
protected void move(float dx, float dy)
public void execEvent(String activity, String ref)
execEvent
in class JsContainer
public Object execCalculate()
execCalculate
in class JsContainer
public void execValidate()
execValidate
in class JsContainer
public FlattenerContext getFlattenerContext()
public List<ScriptString> getScriptsByActivity(String activity, String ref)
getScriptsByActivity
in class JsContainer
protected List<ScriptString> getCalculationScripts()
getCalculationScripts
in class JsContainer
protected List<ScriptString> getValidateScripts()
getValidateScripts
in class JsContainer
protected void initLayout()
public abstract Positioner checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin)
public abstract Positioner position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentException
IOException
public void drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox)
public void drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle rec, XFARectangle parentBoundingBox)
public Object fetchDataNode(boolean createNewIfNotExists)
fetchDataNode
in class JsContainer
public DataTag fetchDataTagRecursively()
public Object getRawValue()
public void setRawValue(Object rawValue)
public String getLayout()
public XFARectangle getContentArea()
public List<Positioner> getChildren()
public void removeChild(int index)
public XFARectangle getBBox()
public Positioner getParent()
public void setParent(Positioner parent)
public BreakConditions getBreakConditions()
public void setBreakConditions(BreakConditions breakConditions)
public KeepConditions getKeepConditions()
public abstract boolean isBreakable()
public XFATemplateTag getTemplate()
public DataTag getData()
public void setData(DataTag data)
public com.itextpdf.text.pdf.PdfContentByte getCanvas()
public void setCanvas(com.itextpdf.text.pdf.PdfContentByte canvas)
public Integer getStartPageNumber()
public Integer getStartSheetNumber()
public void setStartPageNumber(Integer startPageNumber)
public Integer getEndPageNumber()
public void setEndPageNumber(Integer endPageNumber)
public String getName()
public PositionResult.State getPositionState()
public void setPositionState(PositionResult.State positionState)
public String getTemplateId()
public OverflowConditions getOverflowConditions()
public boolean isCurrentPageContentAreaOverflowed(PageArea pageArea)
public void addOverflowedPageContentArea(PageArea pageArea)
public com.itextpdf.awt.geom.AffineTransform getTransformation()
public void setTransformation(com.itextpdf.awt.geom.AffineTransform transform)
protected boolean supportLegacyPlusPrint()
public boolean isLayoutOutOfDate()
public void setLayoutOutOfDate(boolean layoutOutOfDate)
public boolean isVisible()
public boolean isInvisible()
public void adjustLayout()
protected void applyRotation()
public void applyTranslation(float xtr, float ytr)
public void applyTransformationToRectangle(XFARectangle bbox)
public void applyTransformationToRectangle(XFARectangle bbox, boolean inverse)
protected Positioner findNextBreakableElement(int startFrom)
protected boolean doesNotFitContentArea(float bottomMargin, float contentAreaBottom)
protected Positioner findNextBreakableElement()
protected abstract void adjustContentArea()
protected void adjustContentAreaHeight(float newHeight)
public abstract void relayout(boolean forceLayout)
protected void adjustContentAreaUry(float ury)
protected boolean isPositionedPartially()
public Positioner getPreviousPositionerInLayout(Positioner childPositioner, String layout)
public Positioner getLastPositionerInLayout(String layout)
public XFARectangle getAbsoluteBbox()
public XFARectangle getAbsoluteBbox(boolean ignorePagenationTransformation)
public com.itextpdf.awt.geom.AffineTransform getFinalTransformation(boolean ignorePagenationTransformation)
protected Positioner getLastPositionerBeforeInd(int childIndex, String childLayout)
protected void savePosState(com.itextpdf.text.pdf.PdfContentByte canvas)
protected void restorePosState(com.itextpdf.text.pdf.PdfContentByte canvas)
public Object getFormattedValue()
getFormattedValue
in class JsContainer
protected String getAlternateText()
public float getBottomInset()
public void applyMargins(XFARectangle rectangle)
public XFARectangle unapplyMargins(XFARectangle rectangle)
public com.itextpdf.text.pdf.PdfObject getAccessibleAttribute(com.itextpdf.text.pdf.PdfName key)
getAccessibleAttribute
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public void setAccessibleAttribute(com.itextpdf.text.pdf.PdfName key, com.itextpdf.text.pdf.PdfObject value)
setAccessibleAttribute
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public HashMapgetAccessibleAttributes()
getAccessibleAttributes
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public com.itextpdf.text.pdf.PdfName getRole()
getRole
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public void setRole(com.itextpdf.text.pdf.PdfName role)
setRole
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public com.itextpdf.text.AccessibleElementId getId()
getId
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public void setId(com.itextpdf.text.AccessibleElementId id)
setId
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public boolean isInline()
isInline
in interface com.itextpdf.text.pdf.interfaces.IAccessibleElement
public boolean isEmpty()
isEmpty
in class org.mozilla.javascript.ScriptableObject
public boolean isContentTagged()
protected String getCaptionText()
protected boolean isBackgroundOrBorderExist()
public void setX(Float x)
public void setWidth(Float w)
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.