/** * Get the width of the column (in Millimeter). * * @return the width of the current column (in Millimeter). */ public double getWidth() { String sWidth = maColumnElement.getProperty(OdfTableColumnProperties.ColumnWidth); if (sWidth == null) { sWidth = DEFAULT_WIDTH; } return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER) ; }
/** * Get the width of the column (in Millimeter). * * @return the width of the current column (in Millimeter). */ public double getWidth() { String sWidth = maColumnElement.getProperty(OdfTableColumnProperties.ColumnWidth); if (sWidth == null) { sWidth = DEFAULT_WIDTH; } return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER) ; }
/** * Get the width of the column (in Millimeter). * * @return the width of the current column (in Millimeter). */ public double getWidth() { String sWidth = maColumnElement.getProperty(OdfTableColumnProperties.ColumnWidth); if (sWidth == null) { sWidth = DEFAULT_WIDTH; } return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER) ; }
/** * Return the height of the row (in Millimeter). * <p> * Return the minimal height, if the row height is not set, * * @return the height of the current row (in Millimeter). */ public double getHeight() { String sHeight = maRowElement.getProperty(OdfTableRowProperties.RowHeight); if (sHeight == null) { sHeight = maRowElement.getProperty(OdfTableRowProperties.MinRowHeight); } if (sHeight == null) { sHeight = DEFAULT_HEIGHT; } return PositiveLength.parseDouble(sHeight, Unit.MILLIMETER); }
/** * Return the height of the row (in Millimeter). * <p> * Return the minimal height, if the row height is not set, * * @return the height of the current row (in Millimeter). */ public double getHeight() { String sHeight = maRowElement.getProperty(OdfTableRowProperties.RowHeight); if (sHeight == null) { sHeight = maRowElement.getProperty(OdfTableRowProperties.MinRowHeight); } if (sHeight == null) { sHeight = DEFAULT_HEIGHT; } return PositiveLength.parseDouble(sHeight, Unit.MILLIMETER); }
/** * Return the height of the row (in Millimeter). * <p> * Return the minimal height, if the row height is not set, * * @return the height of the current row (in Millimeter). */ public double getHeight() { String sHeight = maRowElement.getProperty(OdfTableRowProperties.RowHeight); if (sHeight == null) { sHeight = maRowElement.getProperty(OdfTableRowProperties.MinRowHeight); } if (sHeight == null) { sHeight = DEFAULT_HEIGHT; } return PositiveLength.parseDouble(sHeight, Unit.MILLIMETER); }
/** * Get the width of the table (in Millimeter). * <p> * Throw an UnsupportedOperationException if the table is one sheet of a * spreadsheet document. because the sheet doesn't have an attribute of * table width. * * @return the width of the current table (in Millimeter). * <p> * An UnsupportedOperationException will be thrown if the table is * in the spreadsheet document. */ public double getWidth() { if (!mIsSpreadsheet) { String sWidth = mTableElement.getProperty(OdfTableProperties.Width); if (sWidth == null) { int colCount = getColumnCount(); double tableWidth = 0; for (int i = 0; i < colCount; i++) { Column col = getColumnByIndex(i); tableWidth += col.getWidth(); } return tableWidth; } else{ return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER); } } else { throw new UnsupportedOperationException(); } }
/** * Get the width of the table (in Millimeter). * <p> * Throw an UnsupportedOperationException if the table is one sheet of a * spreadsheet document. because the sheet doesn't have an attribute of * table width. * * @return the width of the current table (in Millimeter). * <p> * An UnsupportedOperationException will be thrown if the table is * in the spreadsheet document. */ public double getWidth() { if (!mIsSpreadsheet) { String sWidth = mTableElement.getProperty(OdfTableProperties.Width); if (sWidth == null) { int colCount = getColumnCount(); double tableWidth = 0; for (int i = 0; i < colCount; i++) { Column col = getColumnByIndex(i); tableWidth += col.getWidth(); } return tableWidth; } else{ return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER); } } else { throw new UnsupportedOperationException(); } }
/** * Get the width of the table (in Millimeter). * <p> * Throw an UnsupportedOperationException if the table is one sheet of a * spreadsheet document. because the sheet doesn't have an attribute of * table width. * * @return the width of the current table (in Millimeter). * <p> * An UnsupportedOperationException will be thrown if the table is * in the spreadsheet document. */ public double getWidth() { if (!mIsSpreadsheet) { String sWidth = mTableElement.getProperty(OdfTableProperties.Width); if (sWidth == null) { int colCount = getColumnCount(); double tableWidth = 0; for (int i = 0; i < colCount; i++) { Column col = getColumnByIndex(i); tableWidth += col.getWidth(); } return tableWidth; } else{ return PositiveLength.parseDouble(sWidth, Unit.MILLIMETER); } } else { throw new UnsupportedOperationException(); } }