diff options
Diffstat (limited to 'src/org/apache/fop/layout/Area.java')
-rw-r--r-- | src/org/apache/fop/layout/Area.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/apache/fop/layout/Area.java b/src/org/apache/fop/layout/Area.java index d76045a42..dff0fb5e7 100644 --- a/src/org/apache/fop/layout/Area.java +++ b/src/org/apache/fop/layout/Area.java @@ -51,6 +51,9 @@ package org.apache.fop.layout; +// FOP +import org.apache.fop.datatypes.*; + // Java import java.util.Vector; @@ -77,6 +80,8 @@ abstract public class Area extends Box { /* the page this area is on */ protected Page page; + protected ColorType backgroundColor; + public Area (FontState fontState) { this.fontState = fontState; } @@ -137,6 +142,10 @@ abstract public class Area extends Box { return this.page; } + public ColorType getBackgroundColor() { + return this.backgroundColor; + } + public void increaseHeight(int amount) { this.currentHeight += amount; } @@ -154,6 +163,10 @@ abstract public class Area extends Box { this.page = page; } + public void setBackgroundColor(ColorType bgColor) { + this.backgroundColor = bgColor; + } + public int spaceLeft() { return maxHeight - currentHeight; } |