private void drawLeft(PdfContext context, XSSFCellStyle cellStyle) { if (cellStyle.getBorderLeftEnum() != NONE) { context.drawBorder(createBorder(fillArea, XSSFCellBorder.BorderSide.LEFT, cellStyle)); } }
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() ); }
BorderStyle borderStyle=cellStyle.getBorderLeftEnum(); if(!borderStyle.equals(BorderStyle.NONE)){ Border border=new Border();