Package org.apache.fop.render.pdf
Class PDFStructureTreeBuilder
java.lang.Object
org.apache.fop.render.pdf.PDFStructureTreeBuilder
- All Implemented Interfaces:
StructureTreeEventHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static interfaceprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LinkedList<PDFStructElem> private static final Map<String, PDFStructureTreeBuilder.StructureElementBuilder> private static final PDFStructureTreeBuilder.StructureElementBuilderprivate EventBroadcasterprivate PDFFactoryprivate static final Stringprivate PDFStructElem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddBuilder(String fo, StructureType structureType) private static voidprivate voidcreateRootStructureElement(PDFLogicalStructureHandler logicalStructureHandler) static PDFStructElemcreateStructureElement(String name, StructureHierarchyMember parent, Attributes attributes, PDFFactory pdfFactory, EventBroadcaster eventBroadcaster) voidEnds a structure tree node.voidEnds a page sequence structure tree node.private booleanisPDFA1Safe(String name) (package private) voidsetEventBroadcaster(EventBroadcaster eventBroadcaster) (package private) voidsetLogicalStructureHandler(PDFLogicalStructureHandler logicalStructureHandler) (package private) voidsetPdfFactory(PDFFactory pdfFactory) startImageNode(String name, Attributes attributes, StructureTreeElement parent) Starts an image node.startNode(String name, Attributes attributes, StructureTreeElement parent) Starts a structure tree node.voidstartPageSequence(Locale language, String role) Starts a page sequence structure tree node.startReferencedNode(String name, Attributes attributes, StructureTreeElement parent) Starts a node that can be referenced by other nodes.
-
Field Details
-
ROLE
- See Also:
-
BUILDERS
-
DEFAULT_BUILDER
-
pdfFactory
-
eventBroadcaster
-
ancestors
-
rootStructureElement
-
-
Constructor Details
-
PDFStructureTreeBuilder
public PDFStructureTreeBuilder()
-
-
Method Details
-
addBuilder
-
addBuilder
-
setPdfFactory
-
setEventBroadcaster
-
setLogicalStructureHandler
-
createRootStructureElement
-
createStructureElement
public static PDFStructElem createStructureElement(String name, StructureHierarchyMember parent, Attributes attributes, PDFFactory pdfFactory, EventBroadcaster eventBroadcaster) -
startPageSequence
Description copied from interface:StructureTreeEventHandlerStarts a page sequence structure tree node.- Specified by:
startPageSequencein interfaceStructureTreeEventHandler- Parameters:
language- The locale of the page sequencerole- the value of the role property. May be null.
-
endPageSequence
public void endPageSequence()Description copied from interface:StructureTreeEventHandlerEnds a page sequence structure tree node.- Specified by:
endPageSequencein interfaceStructureTreeEventHandler
-
startNode
public StructureTreeElement startNode(String name, Attributes attributes, StructureTreeElement parent) Description copied from interface:StructureTreeEventHandlerStarts a structure tree node.- Specified by:
startNodein interfaceStructureTreeEventHandler- Parameters:
name- the name of the structure tree nodeattributes- the node propertiesparent- the parent of the node. May be null, in which case the parent node is the node corresponding to the previous call to this method- Returns:
- the corresponding structure tree element
-
endNode
Description copied from interface:StructureTreeEventHandlerEnds a structure tree node.- Specified by:
endNodein interfaceStructureTreeEventHandler- Parameters:
name- the name of the structure tree node
-
isPDFA1Safe
-
startImageNode
public StructureTreeElement startImageNode(String name, Attributes attributes, StructureTreeElement parent) Description copied from interface:StructureTreeEventHandlerStarts an image node.- Specified by:
startImageNodein interfaceStructureTreeEventHandler- Parameters:
name- the name of the structure tree nodeattributes- the node propertiesparent- the parent of the node. May be null, in which case the parent node is the node corresponding to the previous call to this method- Returns:
- the corresponding structure tree element
-
startReferencedNode
public StructureTreeElement startReferencedNode(String name, Attributes attributes, StructureTreeElement parent) Description copied from interface:StructureTreeEventHandlerStarts a node that can be referenced by other nodes. This is usually a node that can have Marked Content References as children.- Specified by:
startReferencedNodein interfaceStructureTreeEventHandler- Parameters:
name- the name of the structure tree nodeattributes- the node propertiesparent- the parent of the node. May be null, in which case the parent node is the node corresponding to the previous call to this method- Returns:
- the corresponding structure tree element
-