gpt4 book ai didi

org.apache.poi.xslf.usermodel.XSLFSheet.getDrawing()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 20:30:40 28 4
gpt4 key购买 nike

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

XSLFSheet.getDrawing介绍

暂无

代码示例

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

@Override
public XSLFTextBox createTextBox(){
  XSLFTextBox sh = getDrawing().createTextBox();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFAutoShape createAutoShape(){
  XSLFAutoShape sh = getDrawing().createAutoShape();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

public XSLFTable createTable(){
  XSLFTable sh = getDrawing().createTable();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFFreeformShape createFreeform(){
  XSLFFreeformShape sh = getDrawing().createFreeform();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFConnectorShape createConnector(){
  XSLFConnectorShape sh = getDrawing().createConnector();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFGroupShape createGroup(){
  XSLFGroupShape sh = getDrawing().createGroup();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFTable createTable(int numRows, int numCols){
  if (numRows < 1 || numCols < 1) {
    throw new IllegalArgumentException("numRows and numCols must be greater than 0");
  }
  XSLFTable sh = getDrawing().createTable();
  getShapes().add(sh);
  sh.setParent(this);
  for (int r=0; r<numRows; r++) {
    XSLFTableRow row = sh.addRow();
    for (int c=0; c<numCols; c++) {
      row.addCell();
    }
  }
  return sh;
}

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

@Override
public XSLFPictureShape createPicture(PictureData pictureData){
  if (!(pictureData instanceof XSLFPictureData)) {
    throw new IllegalArgumentException("pictureData needs to be of type XSLFPictureData");
  }
  RelationPart rp = addRelation(null, XSLFRelation.IMAGES, (XSLFPictureData)pictureData);
  XSLFPictureShape sh = getDrawing().createPicture(rp.getRelationship().getId());
  new DrawPictureShape(sh).resize();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFObjectShape createOleShape(PictureData pictureData) {
  if (!(pictureData instanceof XSLFPictureData)) {
    throw new IllegalArgumentException("pictureData needs to be of type XSLFPictureData");
  }
  RelationPart rp = addRelation(null, XSLFRelation.IMAGES, (XSLFPictureData)pictureData);
  
  XSLFObjectShape sh = getDrawing().createOleShape(rp.getRelationship().getId());
  CTOleObject oleObj = sh.getCTOleObject();
  Dimension dim = pictureData.getImageDimension();
  oleObj.setImgW(Units.toEMU(dim.getWidth()));
  oleObj.setImgH(Units.toEMU(dim.getHeight()));
  
  
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

public XSLFAutoShape createAutoShape(){
  List<XSLFShape> shapes = getShapeList();
  XSLFAutoShape sh = getDrawing().createAutoShape();
  shapes.add(sh);
  return sh;
}

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

public XSLFFreeformShape createFreeform(){
  List<XSLFShape> shapes = getShapeList();
  XSLFFreeformShape sh = getDrawing().createFreeform();
  shapes.add(sh);
  return sh;
}

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

public XSLFTextBox createTextBox(){
  List<XSLFShape> shapes = getShapeList();
  XSLFTextBox sh = getDrawing().createTextBox();
  shapes.add(sh);
  return sh;
}

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

public XSLFGroupShape createGroup(){
  List<XSLFShape> shapes = getShapeList();
  XSLFGroupShape sh = getDrawing().createGroup();
  shapes.add(sh);
  return sh;
}

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

public XSLFTable createTable(){
  List<XSLFShape> shapes = getShapeList();
  XSLFTable sh = getDrawing().createTable();
  shapes.add(sh);
  return sh;
}

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

@Override
public XSLFFreeformShape createFreeform(){
  XSLFFreeformShape sh = getDrawing().createFreeform();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFTextBox createTextBox(){
  XSLFTextBox sh = getDrawing().createTextBox();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFConnectorShape createConnector(){
  XSLFConnectorShape sh = getDrawing().createConnector();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

public XSLFTable createTable(){
  XSLFTable sh = getDrawing().createTable();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFAutoShape createAutoShape(){
  XSLFAutoShape sh = getDrawing().createAutoShape();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

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

@Override
public XSLFGroupShape createGroup(){
  XSLFGroupShape sh = getDrawing().createGroup();
  getShapes().add(sh);
  sh.setParent(this);
  return sh;
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com