newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); newWidthNextColumn = 0; inValue = Math.round(roundingFactor * newWidthNextColumn / Unit.INCH.unitInMillimiter()) / roundingFactor; sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr();
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); newWidthNextColumn = 0; inValue = Math.round(roundingFactor * newWidthNextColumn / Unit.INCH.unitInMillimiter()) / roundingFactor; sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr();
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); newWidthNextColumn = 0; inValue = Math.round(roundingFactor * newWidthNextColumn / Unit.INCH.unitInMillimiter()) / roundingFactor; sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr();
newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
newValue = Math.round(roundingFactor * value / destinationUnit.unitInMillimiter() * unit.mUnitInMillimiter) / roundingFactor; }else{ destinationUnit = unit;
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); mTableElement.setProperty(OdfTableProperties.Width, sWidthIN);
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); mTableElement.setProperty(OdfTableProperties.Width, sWidthIN);
double roundingFactor = 10000.0; double inValue = Math.round(roundingFactor * width / Unit.INCH.unitInMillimiter()) / roundingFactor; String sWidthIN = String.valueOf(inValue) + Unit.INCH.abbr(); mTableElement.setProperty(OdfTableProperties.Width, sWidthIN);
/** * Set the height/minimal height of the row (in Millimeter) according to the * second parameter. * * @param height * the height/minimal height that will be set to the row (in * Millimeter). * @param isMinHeight * if it is true, the row can fit the height to the text, vice * versa. */ public void setHeight(double height, boolean isMinHeight) { double roundingFactor = 10000.0; OdfStyleProperty rowHeightProp = isMinHeight ? OdfTableRowProperties.MinRowHeight : OdfTableRowProperties.RowHeight; // TODO:need refactor to PositiveLength. double inValue = Math.round(roundingFactor * height / Unit.INCH.unitInMillimiter()) / roundingFactor; String sHeightIN = String.valueOf(inValue) + Unit.INCH.abbr(); splitRepeatedRows(); maRowElement.removeAttributeNS(OdfDocumentNamespace.TABLE.getUri(), "style-name"); maRowElement.setProperty(rowHeightProp, sHeightIN); }
/** * Set the height/minimal height of the row (in Millimeter) according to the * second parameter. * * @param height * the height/minimal height that will be set to the row (in * Millimeter). * @param isMinHeight * if it is true, the row can fit the height to the text, vice * versa. */ public void setHeight(double height, boolean isMinHeight) { double roundingFactor = 10000.0; OdfStyleProperty rowHeightProp = isMinHeight ? OdfTableRowProperties.MinRowHeight : OdfTableRowProperties.RowHeight; // TODO:need refactor to PositiveLength. double inValue = Math.round(roundingFactor * height / Unit.INCH.unitInMillimiter()) / roundingFactor; String sHeightIN = String.valueOf(inValue) + Unit.INCH.abbr(); splitRepeatedRows(); maRowElement.removeAttributeNS(OdfDocumentNamespace.TABLE.getUri(), "style-name"); maRowElement.setProperty(rowHeightProp, sHeightIN); }
/** * Set the height/minimal height of the row (in Millimeter) according to the * second parameter. * * @param height * the height/minimal height that will be set to the row (in * Millimeter). * @param isMinHeight * if it is true, the row can fit the height to the text, vice * versa. */ public void setHeight(double height, boolean isMinHeight) { double roundingFactor = 10000.0; OdfStyleProperty rowHeightProp = isMinHeight ? OdfTableRowProperties.MinRowHeight : OdfTableRowProperties.RowHeight; // TODO:need refactor to PositiveLength. double inValue = Math.round(roundingFactor * height / Unit.INCH.unitInMillimiter()) / roundingFactor; String sHeightIN = String.valueOf(inValue) + Unit.INCH.abbr(); splitRepeatedRows(); maRowElement.removeAttributeNS(OdfDocumentNamespace.TABLE.getUri(), "style-name"); maRowElement.setProperty(rowHeightProp, sHeightIN); }