From c170f76658550333fe4e9e45383319fc2783ad41 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 7 Feb 2005 10:55:35 +0000 Subject: [PATCH] Additional accessors and style. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198384 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/flow/TableCell.java | 28 +++++++++++------- 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,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() */ 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; } -- 2.39.5