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, transformationcontainerJsObjectinstanceManagerByTemplate, nodeJsObject, nodes, protoTemplate, tag, textJsObject, UNIVERSAL_PROTOTYPE_ROOT, utf8CharsetflattenerContext, shortcuts, treeJsObjectrhinoJsObject| 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, unapplyMarginsexecInitialize, execOwnEvent, get$, getDataNode, getFillColor, setFillColoraddAfterMe, 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, setProtoTemplategetAll, getIndex, getNamePropertyByNameKey, getSomExpression, resolveNode, resolveNodeInt, resolveNodes, resolveNodesInt, searchNode, searchNodeByClassName, searchNodeById, searchNodeByName, searchNodeDown, searchNodes, searchNodesById, searchNodesByName, splitSOM, strictSearchNode, strictSearchNodeByNamedefineConstantProperty, defineProperty, evaluateScript, evaluateScript, getClassName, getDefaultValue, getOwnProperty, getProperty, getStringProperty, isUndefined, unwrapapplyDescriptorToAttributeBitset, 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, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassNameprotected 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 Positionerpublic Positioner checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, boolean checkBreakable)
protected Positioner findNextBreakableElement(int startFrom)
findNextBreakableElement in class Positionerpublic 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 Positionercom.itextpdf.text.DocumentExceptionIOExceptionprotected void adjustContentArea()
adjustContentArea in class Positionerpublic boolean isEmpty()
isEmpty in class Positionerprotected void initLayout()
initLayout in class Positionerpublic PositionResult.State position(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentExceptionIOExceptionprotected 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 Positionerprotected Object normalizeRawValueString(String value, com.itextpdf.tool.xml.Tag valueTag)
protected abstract XFARectangle getTextArea()
protected void adjustContentAreaHeight(float newHeight)
adjustContentAreaHeight in class Positionerpublic void relayout(boolean forceLayout)
relayout in class Positionerprotected void move(float dx,
float dy)
move in class Positionerprotected void adjustContentAreaUry(float ury)
adjustContentAreaUry in class Positionerprotected boolean isPositionedPartially()
isPositionedPartially in class Positionerpublic Object getFormattedValue()
getFormattedValue in class Positionerpublic Object execCalculate()
execCalculate in class Positionerprotected String getCaptionText()
getCaptionText in class PositionerCopyright (C) 1998-2019 iText Group NV. All Rights Reserved.