public abstract class ContentPositioner extends Positioner
Positioner.PositionedLayoutComparator, Positioner.RowLayoutComparator
Modifier and Type | Field and Description |
---|---|
protected CaptionElement |
captionElement |
protected ContentElement |
contentElement |
protected com.itextpdf.text.Document |
document |
protected String |
inputParsingPattern |
protected Integer |
originalNumberOfFractionalDigitsInRawValue |
protected UiElement |
uiElement |
protected List<UiElement> |
uiElements |
accessibleAttributes, assistTag, breakConditions, buildNextInstance, canvas, childElements, contentArea, data, endPageNumber, id, immediateChildren, isContentTagged, isEmpty, isTagged, keepConditions, layoutOutOfDate, overflowConditions, overflowedContentAreas, parent, positionState, role, startPageNumber, startSheetNumber, template, transformation
containerJsObject
instanceManagerByTemplate, nodeJsObject, nodes, protoTemplate, tag, textJsObject, UNIVERSAL_PROTOTYPE_ROOT, utf8Charset
flattenerContext, shortcuts, treeJsObject
rhinoJsObject
Constructor and Description |
---|
ContentPositioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustContentArea() |
protected void |
adjustContentAreaHeight(float newHeight) |
protected void |
adjustContentAreaIfImageElementSizeCalculated(ImageElement imageElement) |
protected void |
adjustContentAreaUry(float ury) |
Positioner |
checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, boolean checkBreakable) |
Positioner |
checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
protected void |
createCaptionElement() |
protected TextElement |
createChoiceListTextContentElement(FormNode uiElementTag, XFARectangle textElementRect) |
protected void |
createContentElement() |
protected ImageElement |
createImageContentElement(FormNode elementTag) |
protected TextElement |
createTextContentElement() |
Object |
execCalculate() |
protected Positioner |
findNextBreakableElement(int startFrom) |
CaptionElement |
getCaption() |
protected String |
getCaptionText() |
protected XFARectangle |
getContentRect() |
XFARectangle |
getElementArea(XFARectangle originalRec) |
Object |
getFormattedValue() |
protected abstract XFARectangle |
getTextArea() |
protected void |
initLayout() |
void |
initValues() |
boolean |
isEmpty() |
protected boolean |
isPositionedPartially() |
protected void |
move(float dx, float dy) |
protected Object |
normalizeRawValueString(String value, com.itextpdf.tool.xml.Tag valueTag) |
PositionResult.State |
position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) |
Positioner |
position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
void |
relayout(boolean forceLayout) |
void |
setRawValue(Object rawValue) |
protected PositionResult |
simulatePosition(XFARectangle childBoundingBox) |
addChild, addOverflowedPageContentArea, adjustLayout, applyMargins, applyRotation, applyTransformationToRectangle, applyTransformationToRectangle, applyTranslation, doesNotFitContentArea, drawBorder, drawBorder, execEvent, execValidate, fetchDataNode, fetchDataTagRecursively, findNextBreakableElement, getAbsoluteBbox, getAbsoluteBbox, getAccessibleAttribute, getAccessibleAttributes, getAlternateText, getBBox, getBottomInset, getBreakConditions, getCalculationScripts, getCanvas, getChildren, getContentArea, getData, getEndPageNumber, getFinalTransformation, getFlattenerContext, getId, getIndependentRotation, getKeepConditions, getLastPositionerBeforeInd, getLastPositionerInLayout, getLayout, getName, getOverflowConditions, getParent, getPositionState, getPreviousPositionerInLayout, getRawValue, getRole, getScriptsByActivity, getStartPageNumber, getStartSheetNumber, getTemplate, getTemplateId, getTransformation, getValidateScripts, initContentArea, initMinWContentAreaProperty, isBackgroundOrBorderExist, isBreakable, isContentTagged, isCurrentPageContentAreaOverflowed, isInline, isInvisible, isLayoutOutOfDate, isVisible, place, place, put, removeChild, restorePosState, savePosState, setAccessibleAttribute, setBreakConditions, setCanvas, setData, setEndPageNumber, setId, setLayoutOutOfDate, setParent, setPositionState, setRole, setStartPageNumber, setTransformation, setWidth, setX, supportLegacyPlusPrint, unapplyMargins
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 final com.itextpdf.text.Document document
protected UiElement uiElement
protected ContentElement contentElement
protected CaptionElement captionElement
protected String inputParsingPattern
protected Integer originalNumberOfFractionalDigitsInRawValue
public ContentPositioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parent)
public Positioner checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin)
checkOverflowing
in class Positioner
public Positioner checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, boolean checkBreakable)
protected Positioner findNextBreakableElement(int startFrom)
findNextBreakableElement
in class Positioner
public Positioner position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) throws com.itextpdf.text.DocumentException, IOException
position
in class Positioner
com.itextpdf.text.DocumentException
IOException
protected void adjustContentArea()
adjustContentArea
in class Positioner
public boolean isEmpty()
isEmpty
in class Positioner
protected void initLayout()
initLayout
in class Positioner
public PositionResult.State position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentException
IOException
protected PositionResult simulatePosition(XFARectangle childBoundingBox)
public CaptionElement getCaption()
protected XFARectangle getContentRect()
public XFARectangle getElementArea(XFARectangle originalRec)
protected void createContentElement()
protected void createCaptionElement()
protected TextElement createTextContentElement()
protected TextElement createChoiceListTextContentElement(FormNode uiElementTag, XFARectangle textElementRect)
protected ImageElement createImageContentElement(FormNode elementTag)
protected void adjustContentAreaIfImageElementSizeCalculated(ImageElement imageElement)
public void initValues()
public void setRawValue(Object rawValue)
setRawValue
in class Positioner
protected Object normalizeRawValueString(String value, com.itextpdf.tool.xml.Tag valueTag)
protected abstract XFARectangle getTextArea()
protected void adjustContentAreaHeight(float newHeight)
adjustContentAreaHeight
in class Positioner
public void relayout(boolean forceLayout)
relayout
in class Positioner
protected void move(float dx, float dy)
move
in class Positioner
protected void adjustContentAreaUry(float ury)
adjustContentAreaUry
in class Positioner
protected boolean isPositionedPartially()
isPositionedPartially
in class Positioner
public Object getFormattedValue()
getFormattedValue
in class Positioner
public Object execCalculate()
execCalculate
in class Positioner
protected String getCaptionText()
getCaptionText
in class Positioner
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.