org.apache.fop.area
Class Page
- Cloneable, Serializable
public class Page
implements Serializable, Cloneable
The page.
This holds the contents of the page. Each region is added.
The unresolved references area added so that if the page is
serialized then it will handle the resolving properly after
being reloaded.
This is serializable so it can be saved to cache to save
memory if there are forward references.
The page is cloneable so the page master can make copies of
the top level page and regions.
Page
public Page()
Empty constructor, for cloning
Page
public Page(SimplePageMaster spm)
Constructor
spm
- SimplePageMaster containing the dimensions for this
page-reference-area
clone
public Object clone()
Clone this page.
This returns a new page with a clone of all the regions.
fakeNonEmpty
public void fakeNonEmpty()
Call this method to force this page to pretend not to be empty.
getRegionViewport
public RegionViewport getRegionViewport(int areaclass)
Get the region from this page.
areaclass
- the region area class
- the region viewport or null if none
getUnresolvedReferences
public Map getUnresolvedReferences()
Get the map unresolved references from this page.
This should be called after deserializing to retrieve
the map of unresolved references that were serialized.
- the de-serialized HashMap of unresolved objects
isEmpty
public boolean isEmpty()
indicates whether any FOs have been added to the body region
- whether any FOs have been added to the body region
setRegionViewport
public void setRegionViewport(int areaclass,
RegionViewport port)
Set the region on this page.
areaclass
- the area class of the region to setport
- the region viewport to set
setUnresolvedReferences
public void setUnresolvedReferences(Map unres)
Set the unresolved references on this page for serializing.
unres
- the Map of unresolved objects
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.