diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-02-07 10:55:35 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-02-07 10:55:35 +0000 |
commit | c170f76658550333fe4e9e45383319fc2783ad41 (patch) | |
tree | b9d69d10f6a3ade4215ad7812dbb2b43cf249ce3 /src/java/org/apache/fop/fo/flow | |
parent | d6f3fb4902d63eeb385cb9c312ac63cc5abf4f76 (diff) | |
download | xmlgraphics-fop-c170f76658550333fe4e9e45383319fc2783ad41.tar.gz xmlgraphics-fop-c170f76658550333fe4e9e45383319fc2783ad41.zip |
Additional accessors and style.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/TableCell.java | 28 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/flow/TableRow.java | 29 |
2 files changed, 32 insertions, 25 deletions
diff --git a/src/java/org/apache/fop/fo/flow/TableCell.java b/src/java/org/apache/fop/fo/flow/TableCell.java index 37f35cf33..7b4f16f39 100644 --- a/src/java/org/apache/fop/fo/flow/TableCell.java +++ b/src/java/org/apache/fop/fo/flow/TableCell.java @@ -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,41 +278,53 @@ 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() */ public String getName() { diff --git a/src/java/org/apache/fop/fo/flow/TableRow.java b/src/java/org/apache/fop/fo/flow/TableRow.java index 222d7b67a..3583b546f 100644 --- a/src/java/org/apache/fop/fo/flow/TableRow.java +++ b/src/java/org/apache/fop/fo/flow/TableRow.java @@ -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; } |