]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
move property resolution logic from area/CTM.getCTMandRelDims() back to fo/PropertyMa...
authorWilliam Victor Mote <vmote@apache.org>
Sun, 24 Aug 2003 17:46:10 +0000 (17:46 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Sun, 24 Aug 2003 17:46:10 +0000 (17:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196831 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/CTM.java
src/java/org/apache/fop/fo/PropertyManager.java

index 07e142b66215bb3b00944e5e905c5d73a22281fb..2f5e07051a6545c8fe5df6b56c0f721f0b7e6f1f 100644 (file)
@@ -290,8 +290,7 @@ public class CTM implements Serializable {
         int width, height;
         // We will use the absolute reference-orientation to set up the CTM.
         // The value here is relative to its ancestor reference area.
-        int absRefOrient = pm.getAbsRefOrient(
-                pm.getProperties().get("reference-orientation").getNumber().intValue());
+        int absRefOrient = pm.getAbsRefOrient();
         if (absRefOrient % 180 == 0) {
             width = (int) absVPrect.getWidth();
             height = (int) absVPrect.getHeight();
@@ -327,7 +326,7 @@ public class CTM implements Serializable {
             }
             ctm = ctm.rotate(absRefOrient);
         }
-        int wm = pm.getProperties().get("writing-mode").getEnum();
+        int wm = pm.getWritingMode();
         /* Since we've already put adjusted width and height values for the
          * top and left positions implied by the reference-orientation, we
          * can set ipd and bpd appropriately based on the writing mode.
index 11d11c82e4542d423b831a737b6a00716aa671de..e9305d64c253b9459cd61ab95f3fd64bc2cca1ee 100644 (file)
@@ -511,8 +511,12 @@ public class PropertyManager {
     /**
      * Calculate absolute reference-orientation relative to media orientation.
      */
-    public int getAbsRefOrient(int myRefOrient) {
-        return myRefOrient;
+    public int getAbsRefOrient() {
+        return properties.get("reference-orientation").getNumber().intValue();
+    }
+
+    public int getWritingMode() {
+        return properties.get("writing-mode").getEnum();
     }
 
 }