]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Rectangle2D viewArea renamed area for consistency with superclass
authorPeter Bernard West <pbwest@apache.org>
Sun, 2 May 2004 06:12:53 +0000 (06:12 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 2 May 2004 06:12:53 +0000 (06:12 +0000)
Area

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197551 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/RegionViewport.java

index 861d1c6a497b50519ba2814b3b8a5041c3d24fbb..cd2b21da418277e85542021211e0e4549ebd4ba6 100644 (file)
@@ -35,19 +35,19 @@ implements Viewport, Cloneable {
     /**
      * Create a new region viewport.
      *
-     * @param viewArea the view area of this viewport
+     * @param area the view area of this viewport
      */
     public RegionViewport(
-            Rectangle2D viewArea,
+            Rectangle2D area,
             FoPageSequence pageSeq,
             FONode generatedBy,
             Node parent,
             Object sync) {
-        super(viewArea, pageSeq, generatedBy, parent, sync);
+        super(area, pageSeq, generatedBy, parent, sync);
     }
 
     /**
-     * Set the region-regerence-area for this region viewport.
+     * Set the region-reference-area for this region viewport.
      *
      * @param regRef the child region inside this viewport
      */
@@ -151,10 +151,10 @@ implements Viewport, Cloneable {
      */
     private void writeObject(java.io.ObjectOutputStream out)
     throws IOException {
-        out.writeFloat((float) viewArea.getX());
-        out.writeFloat((float) viewArea.getY());
-        out.writeFloat((float) viewArea.getWidth());
-        out.writeFloat((float) viewArea.getHeight());
+        out.writeFloat((float) area.getX());
+        out.writeFloat((float) area.getY());
+        out.writeFloat((float) area.getWidth());
+        out.writeFloat((float) area.getHeight());
         out.writeBoolean(clip);
         //out.writeObject(props);
         out.writeObject(refArea);
@@ -162,7 +162,7 @@ implements Viewport, Cloneable {
 
     private void readObject(java.io.ObjectInputStream in)
             throws IOException, ClassNotFoundException {
-        viewArea = new Rectangle2D.Float(in.readFloat(), in.readFloat(),
+        area = new Rectangle2D.Float(in.readFloat(), in.readFloat(),
                                          in.readFloat(), in.readFloat());
         clip = in.readBoolean();
         //props = (HashMap)in.readObject();
@@ -183,7 +183,7 @@ implements Viewport, Cloneable {
             } catch (CloneNotSupportedException e) {
                 throw new RuntimeException(e);
             }
-            rv.viewArea = (Rectangle2D)(viewArea.clone());
+            rv.area = (Rectangle2D)(area.clone());
             rv.refArea = (PageRefArea)(refArea.clone());
             return rv;
         }