/** * Constructs a textbox. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFChildAnchor anchor){ CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFTextBox shape = new XSSFTextBox(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.setXfrm(anchor.getCTTransform2D()); return shape; } /**
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor) { CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFSimpleShape shape = new XSSFSimpleShape(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.setXfrm(anchor.getCTTransform2D()); return shape; }
/** * Constructs a textbox under the drawing. * * @param anchor * the client anchor describes how this group is attached to the * sheet. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFClientAnchor anchor) { long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); XSSFTextBox shape = new XSSFTextBox(this, ctShape); shape.anchor = anchor; return shape; }
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor * the client anchor describes how this group is attached to the * sheet. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor) { long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); ctShape.getSpPr().setXfrm(createXfrm(anchor)); XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape); shape.anchor = anchor; return shape; }
/** * Constructs a textbox. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFChildAnchor anchor){ CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFTextBox shape = new XSSFTextBox(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.setXfrm(anchor.getCTTransform2D()); return shape; } /**
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor) { CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFSimpleShape shape = new XSSFSimpleShape(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.setXfrm(anchor.getCTTransform2D()); return shape; }
/** * Constructs a textbox under the drawing. * * @param anchor the client anchor describes how this group is attached * to the sheet. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFClientAnchor anchor){ long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); XSSFTextBox shape = new XSSFTextBox(this, ctShape); shape.anchor = anchor; return shape; }
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the client anchor describes how this group is attached * to the sheet. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor) { long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape); shape.anchor = anchor; return shape; }
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFChildAnchor anchor) { CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFSimpleShape shape = new XSSFSimpleShape(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.getCTShape().getSpPr().setXfrm(anchor.getCTTransform2D()); return shape; }
/** * Constructs a textbox. * * @param anchor the child anchor describes how this shape is attached * to the group. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFChildAnchor anchor){ CTShape ctShape = ctGroup.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); XSSFTextBox shape = new XSSFTextBox(getDrawing(), ctShape); shape.parent = this; shape.anchor = anchor; shape.getCTShape().getSpPr().setXfrm(anchor.getCTTransform2D()); return shape; } /**
/** * Constructs a textbox under the drawing. * * @param anchor * the client anchor describes how this group is attached to the * sheet. * @return the newly created textbox. */ public XSSFTextBox createTextbox(XSSFClientAnchor anchor) { long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); XSSFTextBox shape = new XSSFTextBox(this, ctShape); shape.anchor = anchor; return shape; }
/** * Creates a simple shape. This includes such shapes as lines, rectangles, * and ovals. * * @param anchor * the client anchor describes how this group is attached to the * sheet. * @return the newly created shape. */ public XSSFSimpleShape createSimpleShape(XSSFClientAnchor anchor) { long shapeId = newShapeId(); CTTwoCellAnchor ctAnchor = createTwoCellAnchor(anchor); CTShape ctShape = ctAnchor.addNewSp(); ctShape.set(XSSFSimpleShape.prototype()); ctShape.getNvSpPr().getCNvPr().setId(shapeId); ctShape.getSpPr().setXfrm(createXfrm(anchor)); XSSFSimpleShape shape = new XSSFSimpleShape(this, ctShape); shape.anchor = anchor; return shape; }