org.apache.poi.ss.usermodel.CellStyle.getRotation()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(177)

本文整理了Java中org.apache.poi.ss.usermodel.CellStyle.getRotation()方法的一些代码示例,展示了CellStyle.getRotation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CellStyle.getRotation()方法的具体详情如下:
包路径:org.apache.poi.ss.usermodel.CellStyle
类名称:CellStyle
方法名:getRotation

CellStyle.getRotation介绍

[英]get the degree of rotation for the text in the cell
[中]获取单元格中文本的旋转度

代码示例

代码示例来源:origin: org.apache.poi/poi

  1. TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
  2. final Rectangle2D bounds;
  3. if(style.getRotation() != 0){
  4. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  5. trans.concatenate(
  6. AffineTransform.getScaleInstance(1, fontHeightMultiple)

代码示例来源:origin: org.apache.poi/poi

  1. put(properties, LOCKED, style.getLocked());
  2. put(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. put(properties, ROTATION, style.getRotation());
  4. put(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. put(properties, WRAP_TEXT, style.getWrapText());

代码示例来源:origin: openl-tablets/openl-tablets

  1. @Override
  2. public int getRotation() {
  3. return xlsStyle.getRotation();
  4. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
  2. final Rectangle2D bounds;
  3. if(style.getRotation() != 0){
  4. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  5. trans.concatenate(
  6. AffineTransform.getScaleInstance(1, fontHeightMultiple)

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

  1. if(style.getRotation() != 0){
  2. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  3. trans.concatenate(
  4. AffineTransform.getScaleInstance(1, fontHeightMultiple)
  5. if(style.getRotation() != 0){
  6. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  7. trans.concatenate(
  8. AffineTransform.getScaleInstance(1, fontHeightMultiple)

代码示例来源:origin: com.haulmont.thirdparty/poi

  1. if(style.getRotation() != 0){
  2. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  3. trans.concatenate(
  4. AffineTransform.getScaleInstance(1, fontHeightMultiple)
  5. if(style.getRotation() != 0){
  6. trans.concatenate(AffineTransform.getRotateInstance(style.getRotation()*2.0*Math.PI/360.0));
  7. trans.concatenate(
  8. AffineTransform.getScaleInstance(1, fontHeightMultiple)

代码示例来源:origin: pentaho/pentaho-reporting

  1. final Cell cell = next.getCell( i );
  2. assertNotNull( cell );
  3. assertTrue( cell.getCellStyle().getRotation() == ( k > 0 ? 90 : 180 ) );

代码示例来源:origin: pentaho/pentaho-reporting

  1. final Cell cell = next.getCell( i );
  2. assertNotNull( cell );
  3. assertTrue( cell.getCellStyle().getRotation() == k * 90 );

代码示例来源:origin: pentaho/pentaho-reporting

  1. protected HSSFCellStyleKey( final CellStyle style ) {
  2. this.color = style.getFillForegroundColor();
  3. this.colorTop = style.getTopBorderColor();
  4. this.colorLeft = style.getLeftBorderColor();
  5. this.colorBottom = style.getBottomBorderColor();
  6. this.colorRight = style.getRightBorderColor();
  7. this.borderStrokeTop = style.getBorderTopEnum();
  8. this.borderStrokeLeft = style.getBorderLeftEnum();
  9. this.borderStrokeBottom = style.getBorderBottomEnum();
  10. this.borderStrokeRight = style.getBorderRightEnum();
  11. this.dataStyle = style.getDataFormat();
  12. this.font = style.getFontIndex();
  13. this.horizontalAlignment = style.getAlignmentEnum();
  14. this.verticalAlignment = style.getVerticalAlignmentEnum();
  15. this.wrapText = style.getWrapText();
  16. this.textRotation = TextRotation.getInstance( style.getRotation() );
  17. }

代码示例来源:origin: openl-tablets/openl-tablets

  1. private boolean equalsStyle(CellStyle cs1, CellStyle cs2) {
  2. 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();
  3. }

代码示例来源:origin: org.apache.poi/poi-contrib

  1. putBoolean(properties, LOCKED, style.getLocked());
  2. putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. putShort(properties, ROTATION, style.getRotation());
  4. putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. putBoolean(properties, LOCKED, style.getLocked());
  2. putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. putShort(properties, ROTATION, style.getRotation());
  4. putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

  1. put(properties, LOCKED, style.getLocked());
  2. put(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. put(properties, ROTATION, style.getRotation());
  4. put(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. put(properties, WRAP_TEXT, style.getWrapText());

代码示例来源:origin: com.haulmont.thirdparty/poi

  1. putBoolean(properties, LOCKED, style.getLocked());
  2. putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. putShort(properties, ROTATION, style.getRotation());
  4. putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

  1. putBoolean(properties, LOCKED, style.getLocked());
  2. putShort(properties, RIGHT_BORDER_COLOR, style.getRightBorderColor());
  3. putShort(properties, ROTATION, style.getRotation());
  4. putShort(properties, TOP_BORDER_COLOR, style.getTopBorderColor());
  5. putShort(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignment());

代码示例来源:origin: com.github.nic-luo/rober-office

  1. toStyle.setRotation(fromStyle.getRotation()); //旋转
  2. toStyle.setVerticalAlignment(fromStyle.getVerticalAlignment());
  3. toStyle.setWrapText(fromStyle.getWrapText());

相关文章