aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/layout/AreaContainer.java
blob: ff4de0d10f476afaa6ffa93f8301ce3fd783fed4 (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
package org.apache.xml.fop.layout;

// FOP
import org.apache.xml.fop.render.Renderer;

// Java
import java.util.Vector;
import java.util.Enumeration;
						  
public class AreaContainer extends Area {

    private int xPosition; // should be able to take value 'left' and 'right' too
    private int yPosition; // should be able to take value 'top' and 'bottom' too

    AreaContainer(int xPosition, int yPosition, int allocationWidth, int maxHeight) {
	super(null, allocationWidth, maxHeight);
	this.xPosition = xPosition;
	this.yPosition = yPosition;
    }

    public void render(Renderer renderer) {
	renderer.renderAreaContainer(this);
    }

    public int getXPosition() {
	return xPosition;
    }

    public int getYPosition() {
	return yPosition;
    }
}