diff options
author | Karen Lease <klease@apache.org> | 2001-11-09 22:00:04 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-11-09 22:00:04 +0000 |
commit | 5516b1d89ca96b33dc5086d08992c3bc6103178e (patch) | |
tree | 35df27352826799d1f9b5ff8d24840e9db2f73b0 | |
parent | 8d485c01899dacc3425cb1120acf26fb1f7b2cd1 (diff) | |
download | xmlgraphics-fop-5516b1d89ca96b33dc5086d08992c3bc6103178e.tar.gz xmlgraphics-fop-5516b1d89ca96b33dc5086d08992c3bc6103178e.zip |
Replaces Region.java to avoid naming conflicts with fo/pagination/Region
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194542 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/area/RegionReference.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/org/apache/fop/area/RegionReference.java b/src/org/apache/fop/area/RegionReference.java new file mode 100644 index 000000000..709bbbc43 --- /dev/null +++ b/src/org/apache/fop/area/RegionReference.java @@ -0,0 +1,41 @@ +/* + * $Id$ + * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. + * For details on use and redistribution please refer to the + * LICENSE file included with these sources. + */ + +package org.apache.fop.area; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +public class RegionReference extends Area implements Serializable { + public static final int BEFORE = 0; + public static final int START = 1; + public static final int BODY = 2; + public static final int END = 3; + public static final int AFTER = 4; + int regionClass = BEFORE; + + public RegionReference(int type) { + regionClass = type; + } + + // the list of block areas from the static flow + ArrayList blocks = new ArrayList(); + + public List getBlocks() { + return blocks; + } + + public int getRegionClass() { + return regionClass; + } + + public void addBlock(Block block) { + blocks.add(block); + } + +} |