blob: 2274c37906c5db16256a8a40376ae38e169eac88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
}
}
|