diff options
author | Keiron Liddle <keiron@apache.org> | 2001-10-22 09:30:33 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-10-22 09:30:33 +0000 |
commit | 52e85df344713f452e72db2232f1430747c88b24 (patch) | |
tree | 561246672d0d344fcfe95daa644080753dd343df /src/org/apache/fop/area/Region.java | |
parent | 7ae7d602161bd83182e064c81e4a79968b7ee0cc (diff) | |
download | xmlgraphics-fop-52e85df344713f452e72db2232f1430747c88b24.tar.gz xmlgraphics-fop-52e85df344713f452e72db2232f1430747c88b24.zip |
new area tree and rendering stuff
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194519 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/area/Region.java')
-rw-r--r-- | src/org/apache/fop/area/Region.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/org/apache/fop/area/Region.java b/src/org/apache/fop/area/Region.java new file mode 100644 index 000000000..d51da6e2d --- /dev/null +++ b/src/org/apache/fop/area/Region.java @@ -0,0 +1,40 @@ +/* + * $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.util.ArrayList; +import java.util.List; + +public class Region { + 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 Region(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); + } + +} |