Class LayoutTaggingHelper
java.lang.Object
com.itextpdf.layout.tagging.LayoutTaggingHelper
The class is a helper which is used to correctly create structure
tree for layout element (with keeping right order for tags).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<IRenderer, TagTreePointer> private final TagStructureContextprivate final PdfDocumentprivate final Map<PdfObject, TaggingDummyElement> private final booleanprivate final Map<TaggingHintKey, List<TaggingHintKey>> private final Map<TaggingHintKey, TaggingHintKey> private final intprivate final intprivate final Map<String, List<ITaggingRule>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKidsHint(TagTreePointer parentPointer, Iterable<? extends IPropertyContainer> newKids) voidaddKidsHint(IPropertyContainer parent, Iterable<? extends IPropertyContainer> newKids) voidaddKidsHint(IPropertyContainer parent, Iterable<? extends IPropertyContainer> newKids, int insertIndex) voidaddKidsHint(TaggingHintKey parentKey, Collection<TaggingHintKey> newKidsKeys) voidaddKidsHint(TaggingHintKey parentKey, Collection<TaggingHintKey> newKidsKeys, int insertIndex) private voidaddKidsHint(TaggingHintKey parentKey, Collection<TaggingHintKey> newKidsKeys, int insertIndex, boolean skipFinishedChecks) static voidaddTreeHints(LayoutTaggingHelper taggingHelper, IRenderer rootRenderer) private booleancreateSingleTag(TaggingHintKey hintKey, TagTreePointer tagPointer) booleancreateTag(IRenderer renderer, TagTreePointer tagPointer) booleancreateTag(TaggingHintKey hintKey, TagTreePointer tagPointer) private voidfinishDummyKids(List<TaggingHintKey> taggingHintKeys) voidfinishTaggingHint(IPropertyContainer hintOwner) getAccessibleKidsHint(TaggingHintKey parent) getAccessibleParentHint(TaggingHintKey hintKey) static TaggingHintKeygetHintKey(IPropertyContainer container) getKidsHint(TaggingHintKey parent) private intgetNearestNextSiblingIndex(WaitingTagsManager waitingTagsManager, TagTreePointer parentPointer, TaggingHintKey parentKey, TaggingHintKey kidKey) static TaggingHintKeygetOrCreateHintKey(IPropertyContainer container) private static TaggingHintKeygetOrCreateHintKey(IPropertyContainer hintOwner, boolean setProperty) getParentHint(IPropertyContainer hintOwner) getParentHint(TaggingHintKey hintKey) booleanisArtifact(IPropertyContainer hintOwner) private static booleanisNonAccessibleHint(TaggingHintKey hintKey) private booleanprivate booleanisSomeParentNotFinished(TaggingHintKey parentHint) private booleanisTagAlreadyExistsForHint(TaggingHintKey tagHint) voidmarkArtifactHint(IPropertyContainer hintOwner) voidmarkArtifactHint(TaggingHintKey hintKey) intmoveKidHint(TaggingHintKey hintKeyOfKidToMove, TaggingHintKey newParent) intmoveKidHint(TaggingHintKey hintKeyOfKidToMove, TaggingHintKey newParent, int insertIndex) private voidmoveKidTagIfCreated(TaggingHintKey parentKey, TaggingHintKey kidKey) private voidregisterRules(PdfVersion pdfVersion) private voidregisterSingleRule(String role, ITaggingRule rule) voidvoidprivate voidreleaseHint(TaggingHintKey hint, Set<TaggingHintKey> hintsToBeHeld, boolean checkContextIsFinished) private intremoveParentHint(TaggingHintKey hintKey) private intremoveParentHint(TaggingHintKey hintKey, TaggingHintKey parentHint) intreplaceKidHint(TaggingHintKey kidHintKey, Collection<TaggingHintKey> newKidsHintKeys) voidrestoreAutoTaggingPointerPosition(IRenderer renderer) private intscanForNearestNextSiblingIndex(LayoutTaggingHelper.ScanContext scanContext, TaggingHintKey toCheck, TaggingHintKey parent) voidsetRoleHint(IPropertyContainer hintOwner, String role)
-
Field Details
-
context
-
document
-
immediateFlush
private final boolean immediateFlush -
kidsHints
-
parentHints
-
autoTaggingPointerSavedPosition
-
taggingRules
-
dummiesForPreExistingTags
-
RETVAL_NO_PARENT
private final int RETVAL_NO_PARENT- See Also:
-
RETVAL_PARENT_AND_KID_FINISHED
private final int RETVAL_PARENT_AND_KID_FINISHED- See Also:
-
-
Constructor Details
-
LayoutTaggingHelper
-
-
Method Details
-
addTreeHints
-
getHintKey
-
getOrCreateHintKey
-
addKidsHint
public void addKidsHint(TagTreePointer parentPointer, Iterable<? extends IPropertyContainer> newKids) -
addKidsHint
-
addKidsHint
public void addKidsHint(IPropertyContainer parent, Iterable<? extends IPropertyContainer> newKids, int insertIndex) -
addKidsHint
-
addKidsHint
public void addKidsHint(TaggingHintKey parentKey, Collection<TaggingHintKey> newKidsKeys, int insertIndex) -
setRoleHint
-
isArtifact
-
markArtifactHint
-
markArtifactHint
-
useAutoTaggingPointerAndRememberItsPosition
-
restoreAutoTaggingPointerPosition
-
getKidsHint
-
getAccessibleKidsHint
-
getParentHint
-
getParentHint
-
getAccessibleParentHint
-
releaseFinishedHints
public void releaseFinishedHints() -
releaseAllHints
public void releaseAllHints() -
createTag
-
createTag
-
finishTaggingHint
-
replaceKidHint
-
moveKidHint
-
moveKidHint
public int moveKidHint(TaggingHintKey hintKeyOfKidToMove, TaggingHintKey newParent, int insertIndex) -
getPdfDocument
-
getOrCreateHintKey
-
addKidsHint
private void addKidsHint(TaggingHintKey parentKey, Collection<TaggingHintKey> newKidsKeys, int insertIndex, boolean skipFinishedChecks) -
createSingleTag
-
removeParentHint
-
removeParentHint
-
finishDummyKids
-
moveKidTagIfCreated
-
isNonAccessibleHint
-
isTagAlreadyExistsForHint
-
releaseHint
private void releaseHint(TaggingHintKey hint, Set<TaggingHintKey> hintsToBeHeld, boolean checkContextIsFinished) -
isSomeParentNotFinished
-
isSomeKidNotFinished
-
registerRules
-
registerSingleRule
-
getNearestNextSiblingIndex
private int getNearestNextSiblingIndex(WaitingTagsManager waitingTagsManager, TagTreePointer parentPointer, TaggingHintKey parentKey, TaggingHintKey kidKey) -
scanForNearestNextSiblingIndex
private int scanForNearestNextSiblingIndex(LayoutTaggingHelper.ScanContext scanContext, TaggingHintKey toCheck, TaggingHintKey parent)
-