]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Additional accessors and style.
authorJeremias Maerki <jeremias@apache.org>
Mon, 7 Feb 2005 10:55:35 +0000 (10:55 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 7 Feb 2005 10:55:35 +0000 (10:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198384 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/TableCell.java
src/java/org/apache/fop/fo/flow/TableRow.java

index 37f35cf33382d9791bdf603f3297dcbfb0994ac8..7b4f16f39bffa05dead56265d1962a7b1d9d360d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,9 +18,6 @@
 
 package org.apache.fop.fo.flow;
 
-// Java
-import java.util.List;
-
 import org.xml.sax.Locator;
 
 import org.apache.fop.apps.FOPException;
@@ -36,7 +33,6 @@ import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
 import org.apache.fop.fo.properties.CommonRelativePosition;
 import org.apache.fop.fo.properties.LengthPairProperty;
 import org.apache.fop.fo.properties.LengthRangeProperty;
-import org.apache.fop.layoutmgr.table.Cell;
 
 /**
  * Class modelling the fo:table-cell object.
@@ -282,40 +278,52 @@ public class TableCell extends FObj {
     }
 
     /**
-     * Return the Common Border, Padding, and Background Properties.
+     * @return the Common Border, Padding, and Background Properties.
      */
     public CommonBorderPaddingBackground getCommonBorderPaddingBackground() {
         return commonBorderPaddingBackground;
     }
 
     /**
-     * Return the "column-number" property.
+     * @return the "column-number" property.
      */
     public int getColumnNumber() {
         return Math.max(columnNumber.getValue(), 0);
     }
 
     /**
-     * Return the "id" property.
+     * @return the "id" property.
      */
     public String getId() {
         return id;
     }
 
     /**
-     * Return the "number-columns-spanned" property.
+     * @return the "number-columns-spanned" property.
      */
     public int getNumberColumnsSpanned() {
         return Math.max(numberColumnsSpanned.getValue(), 1);
     }
 
     /**
-     * Return the "number-rows-spanned" property.
+     * @return the "number-rows-spanned" property.
      */
     public int getNumberRowsSpanned() {
         return Math.max(numberRowsSpanned.getValue(), 1);
     }
     
+    /**
+     * @return the "block-progression-dimension" property.
+     */
+    public LengthRangeProperty getBlockProgressionDimension() {
+        return blockProgressionDimension;
+    }
+
+    /** @return the display-align property. */
+    public int getDisplayAlign() {
+        return displayAlign;
+    }
+    
     /**
      * @see org.apache.fop.fo.FObj#getName()
      */
index 222d7b67a60613329246a016d5692271f4d66bf7..3583b546f5577a54ad3836abb5e1885535ca386f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,9 +18,6 @@
 
 package org.apache.fop.fo.flow;
 
-// Java
-import java.util.List;
-
 import org.xml.sax.Locator;
 
 import org.apache.fop.apps.FOPException;
@@ -35,7 +32,6 @@ import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
 import org.apache.fop.fo.properties.CommonRelativePosition;
 import org.apache.fop.fo.properties.KeepProperty;
 import org.apache.fop.fo.properties.LengthRangeProperty;
-import org.apache.fop.layoutmgr.table.Row;
 
 /**
  * Class modelling the fo:table-row object.
@@ -123,14 +119,14 @@ public class TableRow extends FObj {
     }
 
     /**
-     * Return the "id" property.
+     * @return the "id" property.
      */
     public String getId() {
         return id;
     }
 
     /**
-     * Return the "keep-with-previous" property.
+     * @return the "keep-with-previous" property.
      */
     public KeepProperty getKeepWithPrevious() {
         return keepWithPrevious;
@@ -151,29 +147,32 @@ public class TableRow extends FObj {
     }
 
     /**
-     * Return the "height" property.
+     * @return the "block-progression-dimension" property.
+     */
+    public LengthRangeProperty getBlockProgressionDimension() {
+        return blockProgressionDimension;
+    }
+
+    /**
+     * @return the "height" property.
      */
     public Length getHeight() {
         return height;
     }
 
     /**
-     * Return the Common Border, Padding, and Background Properties.
+     * @return the Common Border, Padding, and Background Properties.
      */
     public CommonBorderPaddingBackground getCommonBorderPaddingBackground() {
         return commonBorderPaddingBackground;
     }
     
-    /**
-     * @see org.apache.fop.fo.FObj#getName()
-     */
+    /** @see org.apache.fop.fo.FObj#getName() */
     public String getName() {
         return "fo:table-row";
     }
 
-    /**
-     * @see org.apache.fop.fo.FObj#getNameId()
-     */
+    /** @see org.apache.fop.fo.FObj#getNameId() */
     public int getNameId() {
         return FO_TABLE_ROW;
     }