aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/PropertyManager.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-11-01 10:49:35 +0000
committerKeiron Liddle <keiron@apache.org>2002-11-01 10:49:35 +0000
commit2efc29b2fe29ea1ea0e0b425bddae586c4fe4692 (patch)
tree179829089a05be8f41a3b722be72e1f2f8663eae /src/org/apache/fop/fo/PropertyManager.java
parent6a962c8283f5e24dfdee46a245d34751c788c1a3 (diff)
downloadxmlgraphics-fop-2efc29b2fe29ea1ea0e0b425bddae586c4fe4692.tar.gz
xmlgraphics-fop-2efc29b2fe29ea1ea0e0b425bddae586c4fe4692.zip
added some colors border and background
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195398 13f79535-47bb-0310-9956-ffa450edef68
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;
}
}
+