diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-13 19:16:54 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-13 19:16:54 +0000 |
commit | e835307c9373bed3a8f41bb43e4faee15fdaf548 (patch) | |
tree | 04b42bcff456d9216e96b4cfcb572c59baba76e1 /src/java/org/apache/fop/area/RegionReference.java | |
parent | da85c0b44d79ca790b51fcc0e2700c30e72e9260 (diff) | |
download | xmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.tar.gz xmlgraphics-fop-e835307c9373bed3a8f41bb43e4faee15fdaf548.zip |
Merge of branch Temp_KnuthStylePageBreaking back into HEAD.
Temp_KnuthStylePageBreaking branch and HEAD have been tagged prior to the merge, so merging uncommitted work from the branch should be easier.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/RegionReference.java')
-rw-r--r-- | src/java/org/apache/fop/area/RegionReference.java | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/src/java/org/apache/fop/area/RegionReference.java b/src/java/org/apache/fop/area/RegionReference.java index e1ebf97f3..6f671e96f 100644 --- a/src/java/org/apache/fop/area/RegionReference.java +++ b/src/java/org/apache/fop/area/RegionReference.java @@ -24,26 +24,29 @@ import java.util.List; import org.apache.fop.fo.Constants; /** - * This is a region reference area for the page regions. - * This area represents a region on the page. It is cloneable + * This is a region reference area for a page regions. + * This area is the direct child of a region-viewport-area. It is cloneable * so the page master can make copies from the original page and regions. */ public class RegionReference extends Area implements Cloneable { private int regionClass = Constants.FO_REGION_BEFORE; private CTM ctm; + // the list of block areas from the static flow private List blocks = new ArrayList(); - - private int bpd; + + // the parent RegionViewport for this object + protected RegionViewport regionViewport; /** * Create a new region reference area. * * @param type the region class type */ - public RegionReference(int type) { + public RegionReference(int type, RegionViewport parent) { regionClass = type; addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE); + regionViewport = parent; } /** @@ -58,6 +61,13 @@ public class RegionReference extends Area implements Cloneable { public void setCTM(CTM ctm) { this.ctm = ctm; } + + /** + * @return Returns the parent RegionViewport. + */ + public RegionViewport getRegionViewport() { + return regionViewport; + } /** * Get the current transform of this region. @@ -96,24 +106,6 @@ public class RegionReference extends Area implements Cloneable { } /** - * Set the block-progression-dimension. - * - * @return the footnote area - */ - public void setBPD(int bpd) { - this.bpd = bpd; - } - - /** - * Set the block-progression-dimension. - * - * @return the footnote area - */ - public int getBPD() { - return bpd; - } - - /** * Clone this region. * This is used when cloning the page by the page master. * The blocks are not copied since the master will have no blocks. @@ -121,7 +113,7 @@ public class RegionReference extends Area implements Cloneable { * @return a copy of this region reference area */ public Object clone() { - RegionReference rr = new RegionReference(regionClass); + RegionReference rr = new RegionReference(regionClass, regionViewport); rr.ctm = ctm; rr.setIPD(getIPD()); return rr; |