本文整理了Java中org.apache.poi.ss.usermodel.CellStyle.getRotation()
方法的一些代码示例,展示了CellStyle.getRotation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CellStyle.getRotation()
方法的具体详情如下:
包路径:org.apache.poi.ss.usermodel.CellStyle
类名称:CellStyle
方法名:getRotation
[英]get the degree of rotation for the text in the cell
[中]获取单元格中文本的旋转度
代码示例来源:origin: org.apache.poi/poi
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
final Rectangle2D bounds;
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
代码示例来源:origin: org.apache.poi/poi
put(properties, LOCKED, style.getLocked());
put(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
put(properties, ROTATION, style.getRotation());
put(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
put(properties, WRAP_TEXT, style.getWrapText());
代码示例来源:origin: openl-tablets/openl-tablets
@Override
public int getRotation() {
return xlsStyle.getRotation();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
final Rectangle2D bounds;
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
代码示例来源:origin: com.haulmont.thirdparty/poi
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
if(style.getRotation() != 0){
trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
trans.concatenate(
AffineTransform.getScaleInstance(1, fontHeightMultiple)
代码示例来源:origin: pentaho/pentaho-reporting
final Cell cell = next.getCell( i );
assertNotNull( cell );
assertTrue( cell.getCellStyle().getRotation() == ( k > 0 ? 90 : 180 ) );
代码示例来源:origin: pentaho/pentaho-reporting
final Cell cell = next.getCell( i );
assertNotNull( cell );
assertTrue( cell.getCellStyle().getRotation() == k * 90 );
代码示例来源:origin: pentaho/pentaho-reporting
protected HSSFCellStyleKey( final CellStyle style ) {
this.color = style.getFillForegroundColor();
this.colorTop = style.getTopBorderColor();
this.colorLeft = style.getLeftBorderColor();
this.colorBottom = style.getBottomBorderColor();
this.colorRight = style.getRightBorderColor();
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() );
}
代码示例来源:origin: openl-tablets/openl-tablets
private boolean equalsStyle(CellStyle cs1, CellStyle cs2) {
return (cs1.getAlignment() == cs2.getAlignment() && cs1.getHidden() == cs2.getHidden() && cs1.getLocked() == cs2.getLocked() && cs1.getWrapText() == cs2.getWrapText() && cs1.getBorderBottom() == cs2.getBorderBottom() && cs1.getBorderLeft() == cs2.getBorderLeft() && cs1.getBorderRight() == cs2.getBorderRight() && cs1.getBorderTop() == cs2.getBorderTop() && cs1.getBottomBorderColor() == cs2.getBottomBorderColor() && cs1.getFillBackgroundColor() == cs2.getFillBackgroundColor() && cs1.getFillForegroundColor() == cs2.getFillForegroundColor() && cs1.getFillPattern() == cs2.getFillPattern() && cs1.getIndention() == cs2.getIndention() && cs1.getLeftBorderColor() == cs2.getLeftBorderColor() && cs1.getRightBorderColor() == cs2.getRightBorderColor() && cs1.getRotation() == cs2.getRotation() && cs1.getTopBorderColor() == cs2.getTopBorderColor() && cs1.getVerticalAlignment() == cs2.getVerticalAlignment()) && cs1.getDataFormat() == cs2.getDataFormat();
}
代码示例来源:origin: org.apache.poi/poi-contrib
putBoolean(properties, LOCKED, style.getLocked());
putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
putShort(properties, ROTATION, style.getRotation());
putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
putBoolean(properties, LOCKED, style.getLocked());
putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
putShort(properties, ROTATION, style.getRotation());
putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
put(properties, LOCKED, style.getLocked());
put(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
put(properties, ROTATION, style.getRotation());
put(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
put(properties, WRAP_TEXT, style.getWrapText());
代码示例来源:origin: com.haulmont.thirdparty/poi
putBoolean(properties, LOCKED, style.getLocked());
putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
putShort(properties, ROTATION, style.getRotation());
putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
putBoolean(properties, LOCKED, style.getLocked());
putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
putShort(properties, ROTATION, style.getRotation());
putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());
代码示例来源:origin: com.github.nic-luo/rober-office
toStyle.setRotation(fromStyle.getRotation()); //旋转
toStyle.setVerticalAlignment(fromStyle.getVerticalAlignment());
toStyle.setWrapText(fromStyle.getWrapText());
内容来源于网络,如有侵权,请联系作者删除!