aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-11-09 21:59:30 +0000
committerKaren Lease <klease@apache.org>2001-11-09 21:59:30 +0000
commit8d485c01899dacc3425cb1120acf26fb1f7b2cd1 (patch)
tree300c73253465a296dc0dcfe03d57b07ef3aa7063 /src
parent0061d6a6fffd5285b55fc988d5986461086d1a75 (diff)
downloadxmlgraphics-fop-8d485c01899dacc3425cb1120acf26fb1f7b2cd1.tar.gz
xmlgraphics-fop-8d485c01899dacc3425cb1120acf26fb1f7b2cd1.zip
Parent for areas which stack Block children
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/area/BlockParent.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/org/apache/fop/area/BlockParent.java b/src/org/apache/fop/area/BlockParent.java
new file mode 100644
index 000000000..2274c3790
--- /dev/null
+++ b/src/org/apache/fop/area/BlockParent.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;
+import java.awt.geom.Rectangle2D;
+
+/**
+ * A BlockParent holds block-level areas.
+ */
+public class BlockParent extends Area implements Serializable {
+
+ // this position is used for absolute position
+ // or as an indent
+ // this has the size in the block progression dimension
+ Rectangle2D bounds = null;
+
+ ArrayList children = null;
+
+ // orientation if reference area
+ int orientation = ORIENT_0;
+
+ public void addBlock(Block block) {
+ if (children == null) {
+ children = new ArrayList();
+ }
+ children.add(block);
+ }
+
+ public List getChildAreas() {
+ return children;
+ }
+
+}