aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/PropertyManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/PropertyManager.java')
-rw-r--r--src/org/apache/fop/fo/PropertyManager.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/PropertyManager.java b/src/org/apache/fop/fo/PropertyManager.java
index 44a98f735..21e25a288 100644
--- a/src/org/apache/fop/fo/PropertyManager.java
+++ b/src/org/apache/fop/fo/PropertyManager.java
@@ -254,6 +254,27 @@ public class PropertyManager {
public BackgroundProps getBackgroundProps() {
BackgroundProps bp = new BackgroundProps();
+ bp.backAttachment = properties.get("background-attachment").getEnum();
+ bp.backColor = properties.get("background-color").getColorType();
+ if (bp.backColor.alpha() == 1) {
+ bp.backColor = null;
+ }
+
+ bp.backImage = properties.get("background-image").getString();
+ if (bp.backImage == null || "none".equals(bp.backImage)) {
+ bp.backImage = null;
+ } else {
+ bp.backRepeat = properties.get("background-repeat").getEnum();
+ Property prop = properties.get("background-position-horizontal");
+ if(prop != null) {
+ bp.backPosHorizontal = prop.getLength();
+ }
+ prop = properties.get("background-position-vertical");
+ if(prop != null) {
+ bp.backPosVertical = prop.getLength();
+ }
+ }
+
return bp;
}
@@ -426,3 +447,4 @@ public class PropertyManager {
return myRefOrient;
}
}
+