]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Adjusted for new stubs
authorPeter Bernard West <pbwest@apache.org>
Mon, 23 Feb 2004 13:18:37 +0000 (13:18 +0000)
committerPeter Bernard West <pbwest@apache.org>
Mon, 23 Feb 2004 13:18:37 +0000 (13:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197362 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/Area.java
src/java/org/apache/fop/area/BlockContainer.java
src/java/org/apache/fop/area/ReferenceArea.java
src/java/org/apache/fop/area/inline/InlineContainer.java

index d9d8e1ff4c6a9a68bd8f388db43c9ba897b50faf..63c0ea9863a344c5be52b6dcbb3801746232beb6 100644 (file)
@@ -21,19 +21,33 @@ package org.apache.fop.area;
 import org.apache.fop.datastructs.Node;
 import org.apache.fop.datastructs.SyncedNode;
 
+/**
+ * @author pbw
+ * @version $Revision$ $Name$
+ */
+/**
+ * @author pbw
+ * @version $Revision$ $Name$
+ */
 /**
  * The base class for all areas.  <code>Area</code> extends <code>Node</code>
  * because all areas will find themselves in a tree of some kind.
  * @author pbw
  * @version $Revision$ $Name$
  */
-public class Area extends SyncedNode {
+public class Area extends SyncedNode implements Cloneable  {
 
+    /** Current inline progression dimension.  May be unknown. */
     protected Integer iPDim = null;
+    /** Maximum required inline progression dimension.  May be unknown. */
     protected Integer iPDimMax = null;
+    /** Mimimum required inline progression dimension.  May be unknown. */
     protected Integer iPDimMin = null;
+    /** Current block progression dimension.  May be unknown. */
     protected Integer bPDim = null;
+    /** Maximum required block progression dimension.  May be unknown. */
     protected Integer bPDimMax = null;
+    /** Mimimum required block progression dimension.  May be unknown. */
     protected Integer bPDimMin = null;
     
     /**
@@ -57,4 +71,88 @@ public class Area extends SyncedNode {
         // TODO Auto-generated constructor stub
     }
 
+    /**
+     * @return the bPDim
+     */
+    public Integer getBPDim() {
+        return bPDim;
+    }
+
+    /**
+     * @param dim to set
+     */
+    public void setBPDim(Integer dim) {
+        bPDim = dim;
+    }
+
+    /**
+     * @return the bPDimMax
+     */
+    public Integer getBPDimMax() {
+        return bPDimMax;
+    }
+
+    /**
+     * @param dimMax to set
+     */
+    public void setBPDimMax(Integer dimMax) {
+        bPDimMax = dimMax;
+    }
+
+    /**
+     * @return the bPDimMin
+     */
+    public Integer getBPDimMin() {
+        return bPDimMin;
+    }
+
+    /**
+     * @param dimMin to set
+     */
+    public void setBPDimMin(Integer dimMin) {
+        bPDimMin = dimMin;
+    }
+
+    /**
+     * @return the iPDim
+     */
+    public Integer getIPDim() {
+        return iPDim;
+    }
+
+    /**
+     * @param dim to set
+     */
+    public void setIPDim(Integer dim) {
+        iPDim = dim;
+    }
+
+    /**
+     * @return the iPDimMax
+     */
+    public Integer getIPDimMax() {
+        return iPDimMax;
+    }
+
+    /**
+     * @param dimMax to set
+     */
+    public void setIPDimMax(Integer dimMax) {
+        iPDimMax = dimMax;
+    }
+
+    /**
+     * @return the iPDimMin
+     */
+    public Integer getIPDimMin() {
+        return iPDimMin;
+    }
+
+    /**
+     * @param dimMin to set
+     */
+    public void setIPDimMin(Integer dimMin) {
+        iPDimMin = dimMin;
+    }
+
 }
index ac1a122aa665cd5d3cefa7bbdc2e33a1431870ac..5bb6a135005e7c082a1ffde6d08ebdce5b0f99be 100644 (file)
@@ -25,7 +25,9 @@ import org.apache.fop.datastructs.Node;
  * @author pbw
  * @version $Revision$ $Name$
  */
-public class BlockContainer extends BlockArea implements ReferenceArea {
+public class BlockContainer
+extends AbstractReferenceArea
+implements ReferenceArea {
 
     /**
      * @param parent
index 2d24c79fedc9a5459a1bc5fefb05462ab9706ae0..7e4f3a4e5bf228da831b149fa6562e0c83cd87ac 100644 (file)
@@ -23,6 +23,24 @@ package org.apache.fop.area;
  * @author pbw
  * @version $Revision$ $Name$
  */
-public interface ReferenceArea {
+public interface ReferenceArea extends Cloneable {
 
+    /**
+     * Set the Coordinate Transformation Matrix which transforms content
+     * coordinates in this reference area which are specified in
+     * terms of "start" and "before" into coordinates in a system which
+     * is positioned in "absolute" directions (with origin at lower left of
+     * the reference area.
+     *
+     * @param matrix the current transform to position this region
+     */
+    public void setCoordTransformer(CoordTransformer matrix);
+
+    /**
+     * Get the current transformer of this reference area.
+     *
+     * @return the current transformer to position this reference area.
+     */
+    public CoordTransformer getCoordTransformer();
+        
 }
index f9ebc0f1ca952a98a1992eece88b75b90d7b8bec..2e684666dca9d1e2f394a5aa6853e6799435359f 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.apache.fop.area.inline;
 
+import org.apache.fop.area.AbstractReferenceArea;
 import org.apache.fop.area.ReferenceArea;
 import org.apache.fop.datastructs.Node;
 
@@ -26,7 +27,9 @@ import org.apache.fop.datastructs.Node;
  * @author pbw
  * @version $Revision$ $Name$
  */
-public class InlineContainer extends InlineArea implements ReferenceArea {
+public class InlineContainer
+extends AbstractReferenceArea
+implements ReferenceArea {
 
     /**
      * @param parent