/** * set the row's height in points. * @param height row height in points, <code>-1</code> means to use the default height */ @Override public void setHeightInPoints(float height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); row.setBadFontHeight(false); } else { row.setBadFontHeight(true); row.setHeight((short) (height * 20)); } }
/** * set the row's height or set to ff (-1) for undefined/default-height. Set the height in "twips" or * 1/20th of a point. * @param height rowheight or -1 for undefined (use sheet default) */ @Override public void setHeight(short height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); row.setBadFontHeight(false); } else { row.setBadFontHeight(true); row.setHeight(height); } }
/** * Create a new row within the sheet and return the high level representation * * @param rownum row number * @return High level HSSFRow object representing a row in the sheet * @see org.apache.poi.hssf.usermodel.HSSFRow * @see #removeRow(org.apache.poi.ss.usermodel.Row) */ @Override public HSSFRow createRow(int rownum) { HSSFRow row = new HSSFRow(_workbook, this, rownum); // new rows inherit default height from the sheet row.setHeight(getDefaultRowHeight()); row.getRowRecord().setBadFontHeight(false); addRow(row, true); return row; }
/** * set the row's height in points. * @param height row height in points, <code>-1</code> means to use the default height */ @Override public void setHeightInPoints(float height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); row.setBadFontHeight(false); } else { row.setBadFontHeight(true); row.setHeight((short) (height * 20)); } }
/** * set the row's height or set to ff (-1) for undefined/default-height. Set the height in "twips" or * 1/20th of a point. * @param height rowheight or -1 for undefined (use sheet default) */ public void setHeight(short height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); row.setBadFontHeight(false); } else { row.setBadFontHeight(true); row.setHeight(height); } }
/** * set the row's height or set to ff (-1) for undefined/default-height. Set the height in "twips" or * 1/20th of a point. * @param height rowheight or -1 for undefined (use sheet default) */ @Override public void setHeight(short height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); row.setBadFontHeight(false); } else { row.setBadFontHeight(true); row.setHeight(height); } }
/** * set the row's height or set to ff (-1) for undefined/default-height. Set the height in "twips" or * 1/20th of a point. * @param height rowheight or -1 for undefined (use sheet default) */ public void setHeight(short height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); } else { row.setBadFontHeight(true); row.setHeight(height); } }
/** * set the row's height in points. * @param height row height in points, <code>-1</code> means to use the default height */ public void setHeightInPoints(float height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); } else { row.setBadFontHeight(true); row.setHeight((short) (height * 20)); } }
/** * set the row's height in points. * @param height row height in points, <code>-1</code> means to use the default height */ public void setHeightInPoints(float height) { if(height == -1){ row.setHeight((short)(0xFF | 0x8000)); } else { row.setBadFontHeight(true); row.setHeight((short) (height * 20)); } }
/** * Create a new row within the sheet and return the high level representation * * @param rownum row number * @return High level HSSFRow object representing a row in the sheet * @see org.apache.poi.hssf.usermodel.HSSFRow * @see #removeRow(org.apache.poi.ss.usermodel.Row) */ public HSSFRow createRow(int rownum) { HSSFRow row = new HSSFRow(_workbook, this, rownum); // new rows inherit default height from the sheet row.setHeight(getDefaultRowHeight()); row.getRowRecord().setBadFontHeight(false); addRow(row, true); return row; }
/** * Create a new row within the sheet and return the high level representation * * @param rownum row number * @return High level HSSFRow object representing a row in the sheet * @see org.apache.poi.hssf.usermodel.HSSFRow * @see #removeRow(org.apache.poi.ss.usermodel.Row) */ @Override public HSSFRow createRow(int rownum) { HSSFRow row = new HSSFRow(_workbook, this, rownum); // new rows inherit default height from the sheet row.setHeight(getDefaultRowHeight()); row.getRowRecord().setBadFontHeight(false); addRow(row, true); return row; }