Class Page
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.pdf.Page
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultPDFObjectcontentsprivate java.awt.geom.Rectangle2DmediaBoxprivate PageTreeNodeparentprivate Resourcesresources
-
Constructor Summary
Constructors Constructor Description Page(Resources resources, java.awt.geom.Rectangle2D mediaBox, DefaultPDFObject contents)Initializes aPagewith the specified parent node, MediaBox and contents.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultPDFObjectgetContents()Returns the contents of thisPage.java.awt.geom.Rectangle2DgetMediaBox()PageTreeNodegetParent()Returns the immediate parent of thisPage.ResourcesgetResources()Returns theResourcesobject associated with thisPage.java.lang.StringgetType()Returns the type of this object.protected voidsetParent(PageTreeNode parent)Sets the parent of thisPageto 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 aPagewith 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 thisPageto the specified node.- Parameters:
parent- Immediate parent.
-
getResources
public Resources getResources()
Returns theResourcesobject associated with thisPage.- Returns:
- Page resources.
-
getContents
public DefaultPDFObject getContents()
Returns the contents of thisPage.- Returns:
- Page contents.
-
-