Class Page
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.pdf.Page
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultPDFObject
contents
private java.awt.geom.Rectangle2D
mediaBox
private PageTreeNode
parent
private Resources
resources
-
Constructor Summary
Constructors Constructor Description Page(Resources resources, java.awt.geom.Rectangle2D mediaBox, DefaultPDFObject contents)
Initializes aPage
with the specified parent node, MediaBox and contents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultPDFObject
getContents()
Returns the contents of thisPage
.java.awt.geom.Rectangle2D
getMediaBox()
PageTreeNode
getParent()
Returns the immediate parent of thisPage
.Resources
getResources()
Returns theResources
object associated with thisPage
.java.lang.String
getType()
Returns the type of this object.protected void
setParent(PageTreeNode parent)
Sets the parent of thisPage
to the specified node.
-
-
-
Field Detail
-
resources
private final Resources resources
-
mediaBox
private final java.awt.geom.Rectangle2D mediaBox
-
contents
private final DefaultPDFObject contents
-
parent
private PageTreeNode parent
-
-
Constructor Detail
-
Page
public Page(Resources resources, java.awt.geom.Rectangle2D mediaBox, DefaultPDFObject contents)
Initializes aPage
with the specified parent node, MediaBox and contents.- Parameters:
resources
- Page resourcesmediaBox
- Boundaries of the page.contents
- Contents of the page.
-
-
Method Detail
-
getType
public java.lang.String getType()
Returns the type of this object. The return value is always Page.- Returns:
- The String Page.
-
getMediaBox
public java.awt.geom.Rectangle2D getMediaBox()
-
getParent
public PageTreeNode getParent()
Returns the immediate parent of thisPage
.- Returns:
- Parent node.
-
setParent
protected void setParent(PageTreeNode parent)
Sets the parent of thisPage
to the specified node.- Parameters:
parent
- Immediate parent.
-
getResources
public Resources getResources()
Returns theResources
object associated with thisPage
.- Returns:
- Page resources.
-
getContents
public DefaultPDFObject getContents()
Returns the contents of thisPage
.- Returns:
- Page contents.
-
-