Class Page
java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.Page
- All Implemented Interfaces:
PDFObject
Represents a page of a PDF document.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultPDFObject
private final Rectangle2D
private PageTreeNode
private final Resources
-
Constructor Summary
ConstructorsConstructorDescriptionPage
(Resources resources, Rectangle2D mediaBox, DefaultPDFObject contents) Initializes aPage
with the specified parent node, MediaBox and contents. -
Method Summary
Modifier and TypeMethodDescriptionReturns the contents of thisPage
.Returns the immediate parent of thisPage
.Returns theResources
object associated with thisPage
.getType()
Returns the type of this object.protected void
setParent
(PageTreeNode parent) Sets the parent of thisPage
to the specified node.
-
Field Details
-
resources
-
mediaBox
-
contents
-
parent
-
-
Constructor Details
-
Page
Initializes aPage
with the specified parent node, MediaBox and contents.- Parameters:
resources
- Page resourcesmediaBox
- Boundaries of the page.contents
- Contents of the page.
-
-
Method Details
-
getType
Returns the type of this object. The return value is always Page.- Returns:
- The String Page.
-
getMediaBox
-
getParent
Returns the immediate parent of thisPage
.- Returns:
- Parent node.
-
setParent
Sets the parent of thisPage
to the specified node.- Parameters:
parent
- Immediate parent.
-
getResources
Returns theResources
object associated with thisPage
.- Returns:
- Page resources.
-
getContents
Returns the contents of thisPage
.- Returns:
- Page contents.
-