Java Code Examples for org.apache.poi.ss.usermodel.HorizontalAlignment#LEFT
The following examples show how to use
org.apache.poi.ss.usermodel.HorizontalAlignment#LEFT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BigTitle.java From tools with MIT License | 5 votes |
public BigTitle(String content) { this.lines = 2; this.content = content; this.color = ExcelColor.TAN; this.rowHeight = 350; this.fontColor = ExcelColor.BLACK; this.alignment = HorizontalAlignment.LEFT; this.bold = false; this.fontHeight = 280; }
Example 2
Source File: JRXlsExporter.java From jasperreports with GNU Lesser General Public License v3.0 | 5 votes |
private HorizontalAlignment getHorizontalAlignment(TextAlignHolder alignment) { switch (alignment.horizontalAlignment) { case RIGHT: return HorizontalAlignment.RIGHT; case CENTER: return HorizontalAlignment.CENTER; case JUSTIFIED: return HorizontalAlignment.JUSTIFY; case LEFT: default: return HorizontalAlignment.LEFT; } }
Example 3
Source File: JRXlsMetadataExporter.java From jasperreports with GNU Lesser General Public License v3.0 | 5 votes |
private HorizontalAlignment getHorizontalAlignment(TextAlignHolder alignment) { switch (alignment.horizontalAlignment) { case RIGHT: return HorizontalAlignment.RIGHT; case CENTER: return HorizontalAlignment.CENTER; case JUSTIFIED: return HorizontalAlignment.JUSTIFY; case LEFT: default: return HorizontalAlignment.LEFT; } }
Example 4
Source File: HSSFCellStyleProducer.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
/** * Converts the given element alignment into one of the HorizontalAlignment-constants. * * @param e the JFreeReport element alignment. * @return the HorizontalAlignment-Alignment. * @throws IllegalArgumentException if an Unknown JFreeReport alignment is given. */ protected static HorizontalAlignment convertHorizontalAlignment( final ElementAlignment e ) { if ( ElementAlignment.LEFT.equals( e ) ) { return HorizontalAlignment.LEFT; } else if ( ElementAlignment.RIGHT.equals( e ) ) { return HorizontalAlignment.RIGHT; } else if ( ElementAlignment.JUSTIFY.equals( e ) ) { return HorizontalAlignment.JUSTIFY; } else if ( ElementAlignment.CENTER.equals( e ) ) { return HorizontalAlignment.CENTER; } throw new IllegalArgumentException( "Invalid alignment" ); }