aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2003-02-19 05:49:29 +0000
committerKeiron Liddle <keiron@apache.org>2003-02-19 05:49:29 +0000
commitbbb1c238b55f01dda202df574c7ad06b53fb795f (patch)
tree75b0ed90e91275478287a282536ee1153e278e5e /src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
parent2376cbe94f417b0216ab13b40d9ac7e2826359bf (diff)
downloadxmlgraphics-fop-bbb1c238b55f01dda202df574c7ad06b53fb795f.tar.gz
xmlgraphics-fop-bbb1c238b55f01dda202df574c7ad06b53fb795f.zip
add and retrive markers
use trait setter for area traits some style cleanups git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java')
-rw-r--r--src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
index 47074efe4..af0837d2c 100644
--- a/src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
+++ b/src/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
@@ -7,13 +7,9 @@
package org.apache.fop.layoutmgr;
-import org.apache.fop.fo.FObj;
-import org.apache.fop.fo.TextInfo;
import org.apache.fop.area.Area;
-import org.apache.fop.area.BlockParent;
import org.apache.fop.area.BlockViewport;
import org.apache.fop.area.Block;
-import org.apache.fop.area.LineArea;
import org.apache.fop.fo.PropertyManager;
import org.apache.fop.layout.AbsolutePositionProps;
import org.apache.fop.fo.properties.AbsolutePosition;
@@ -22,9 +18,9 @@ import org.apache.fop.fo.PropertyList;
import org.apache.fop.area.CTM;
import org.apache.fop.datatypes.FODimension;
-import java.util.ListIterator;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.awt.geom.Rectangle2D;
@@ -45,6 +41,9 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager {
int overflow;
PropertyManager propManager;
+ /**
+ * Create a new block container layout manager.
+ */
public BlockContainerLayoutManager() {
}
@@ -203,6 +202,9 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager {
LayoutContext layoutContext) {
getParentArea(null);
+ addID();
+ addMarkers(true);
+
LayoutManager childLM ;
int iStartPos = 0;
LayoutContext lc = new LayoutContext(0);
@@ -225,6 +227,13 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager {
curBlockArea = null;
}
+ /**
+ * Get the parent area for children of this block container.
+ * This returns the current block container area
+ * and creates it if required.
+ *
+ * @see org.apache.fop.layoutmgr.LayoutManager#getParentArea(Area)
+ */
public Area getParentArea(Area childArea) {
if (curBlockArea == null) {
viewportBlockArea = new BlockViewport();
@@ -272,7 +281,11 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager {
return curBlockArea;
}
-
+ /**
+ * Add the child to the block container.
+ *
+ * @see org.apache.fop.layoutmgr.LayoutManager#addChild(Area)
+ */
public void addChild(Area childArea) {
if (curBlockArea != null) {
curBlockArea.addBlock((Block) childArea);
@@ -285,8 +298,8 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager {
}
}
- public void addMarker(String name, LayoutManager lm, boolean start) {
- parentLM.addMarker(name, lm, start);
+ public void addMarkerMap(Map marks, boolean start) {
+ parentLM.addMarkerMap(marks, start);
}
}