Package org.apache.fop.render.pdf
Class PDFStructureTreeBuilder
java.lang.Object
org.apache.fop.render.pdf.PDFStructureTreeBuilder
- All Implemented Interfaces:
StructureTreeEventHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PDFStructElem
createStructureElement
(String name, StructureHierarchyMember parent, Attributes attributes, PDFFactory pdfFactory, org.apache.fop.events.EventBroadcaster eventBroadcaster) void
Ends a structure tree node.void
Ends a page sequence structure tree node.startImageNode
(String name, Attributes attributes, StructureTreeElement parent) Starts an image node.startNode
(String name, Attributes attributes, StructureTreeElement parent) Starts a structure tree node.void
startPageSequence
(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.
-
Constructor Details
-
PDFStructureTreeBuilder
public PDFStructureTreeBuilder()
-
-
Method Details
-
createStructureElement
public static PDFStructElem createStructureElement(String name, StructureHierarchyMember parent, Attributes attributes, PDFFactory pdfFactory, org.apache.fop.events.EventBroadcaster eventBroadcaster) -
startPageSequence
Description copied from interface:StructureTreeEventHandler
Starts a page sequence structure tree node.- Specified by:
startPageSequence
in 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:StructureTreeEventHandler
Ends a page sequence structure tree node.- Specified by:
endPageSequence
in interfaceStructureTreeEventHandler
-
startNode
public StructureTreeElement startNode(String name, Attributes attributes, StructureTreeElement parent) Description copied from interface:StructureTreeEventHandler
Starts a structure tree node.- Specified by:
startNode
in 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:StructureTreeEventHandler
Ends a structure tree node.- Specified by:
endNode
in interfaceStructureTreeEventHandler
- Parameters:
name
- the name of the structure tree node
-
startImageNode
public StructureTreeElement startImageNode(String name, Attributes attributes, StructureTreeElement parent) Description copied from interface:StructureTreeEventHandler
Starts an image node.- Specified by:
startImageNode
in 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:StructureTreeEventHandler
Starts a node that can be referenced by other nodes. This is usually a node that can have Marked Content References as children.- Specified by:
startReferencedNode
in 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
-