public abstract class Region extends FObj {
private SimplePageMaster layoutMaster;
- private int regionId = -1;
private String regionName;
/** Holds the overflow attribute */
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
- protected Region(FONode parent, int id) {
+ protected Region(FONode parent) {
super(parent);
- regionId = id;
}
/**
/**
* Returns a sibling region for this region.
- * @param regionClass the class of the requested region
+ * @param regionId the Constants ID of the FO representing the region
* @return the requested region
*/
protected Region getSiblingRegion(int regionId) {
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
public RegionAfter(FONode parent) {
- super(parent, FO_REGION_AFTER);
+ super(parent);
}
/**
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
- protected RegionBA(FONode parent, int regionId) {
- super(parent, regionId);
+ protected RegionBA(FONode parent) {
+ super(parent);
}
protected void addProperties(Attributes attlist) throws SAXParseException {
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
public RegionBefore(FONode parent) {
- super(parent, FO_REGION_BEFORE);
+ super(parent);
}
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
public RegionBody(FONode parent) {
- super(parent, FO_REGION_BODY);
+ super(parent);
}
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
public RegionEnd(FONode parent) {
- super(parent, FO_REGION_END);
+ super(parent);
}
/**
/**
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
- protected RegionSE(FONode parent, int regionId) {
- super(parent, regionId);
+ protected RegionSE(FONode parent) {
+ super(parent);
}
protected void addProperties(Attributes attlist) throws SAXParseException {
* @see org.apache.fop.fo.FONode#FONode(FONode)
*/
public RegionStart(FONode parent) {
- super(parent, FO_REGION_START);
+ super(parent);
}
/**
/**
* Returns the region for a given region class.
- * @param regionClass region class to lookup
+ * @param regionId Constants ID of the FO representing the region
* @return the region, null if it doesn't exist
*/
public Region getRegion(int regionId) {