leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2; leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2;
leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2; leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2;
/** * Get the type of vertical alignment for the cell * * @return align the type of alignment, default value is {@link org.apache.poi.ss.usermodel.CellStyle#VERTICAL_BOTTOM} * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_TOP * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_CENTER * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_BOTTOM * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_JUSTIFY */ public short getVerticalAlignment() { return (short) (getVerticalAlignmentEnum().ordinal()); }
leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2; leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2;
leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2; leftMargin=wholeWidth-width; VerticalAlignment valign=style.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.CENTER)){ topMargin=(wholeHeight-height)/2;
protected HSSFCellStyleKey( final XSSFCellStyle style ) { this.color = style.getFillForegroundColor(); this.colorTop = style.getTopBorderColor(); this.colorLeft = style.getLeftBorderColor(); this.colorBottom = style.getBottomBorderColor(); this.colorRight = style.getRightBorderColor(); this.xColor = createColor( style.getFillBackgroundXSSFColor() ); this.xColorTop = createColor( style.getTopBorderXSSFColor() ); this.xColorLeft = createColor( style.getLeftBorderXSSFColor() ); this.xColorBottom = createColor( style.getBottomBorderXSSFColor() ); this.xColorRight = createColor( style.getRightBorderXSSFColor() ); this.borderStrokeTop = style.getBorderTopEnum(); this.borderStrokeLeft = style.getBorderLeftEnum(); this.borderStrokeBottom = style.getBorderBottomEnum(); this.borderStrokeRight = style.getBorderRightEnum(); this.dataStyle = style.getDataFormat(); this.font = style.getFontIndex(); this.horizontalAlignment = style.getAlignmentEnum(); this.verticalAlignment = style.getVerticalAlignmentEnum(); this.wrapText = style.getWrapText(); this.textRotation = TextRotation.getInstance( style.getRotation() ); }
style.setAlign(Alignment.left); VerticalAlignment valign=cellStyle.getVerticalAlignmentEnum(); if(valign.equals(VerticalAlignment.BOTTOM)){ style.setValign(Alignment.bottom);