You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by kl...@apache.org on 2001/11/09 22:59:30 UTC
cvs commit: xml-fop/src/org/apache/fop/area BlockParent.java
klease 01/11/09 13:59:30
Added: src/org/apache/fop/area BlockParent.java
Log:
Parent for areas which stack Block children
Revision Changes Path
1.1 xml-fop/src/org/apache/fop/area/BlockParent.java
Index: BlockParent.java
===================================================================
/*
* $Id: BlockParent.java,v 1.1 2001/11/09 21:59:30 klease Exp $
* 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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org