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 DefaultPDFObjectprivate final Rectangle2Dprivate PageTreeNodeprivate final Resources -
Constructor Summary
ConstructorsConstructorDescriptionPage(Resources resources, Rectangle2D mediaBox, DefaultPDFObject contents) Initializes aPagewith the specified parent node, MediaBox and contents. -
Method Summary
Modifier and TypeMethodDescriptionReturns the contents of thisPage.Returns the immediate parent of thisPage.Returns theResourcesobject associated with thisPage.getType()Returns the type of this object.protected voidsetParent(PageTreeNode parent) Sets the parent of thisPageto the specified node.
-
Field Details
-
resources
-
mediaBox
-
contents
-
parent
-
-
Constructor Details
-
Page
Initializes aPagewith 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 thisPageto the specified node.- Parameters:
parent- Immediate parent.
-
getResources
Returns theResourcesobject associated with thisPage.- Returns:
- Page resources.
-
getContents
Returns the contents of thisPage.- Returns:
- Page contents.
-