Search in sources :

Example 1 with CTIdMap

use of com.microsoft.schemas.office.office.CTIdMap in project poi by apache.

the class XSSFVMLDrawing method newDrawing.

/**
     * Initialize a new Speadsheet VML drawing
     */
private void newDrawing() {
    CTShapeLayout layout = CTShapeLayout.Factory.newInstance();
    layout.setExt(STExt.EDIT);
    CTIdMap idmap = layout.addNewIdmap();
    idmap.setExt(STExt.EDIT);
    idmap.setData("1");
    _items.add(layout);
    _qnames.add(QNAME_SHAPE_LAYOUT);
    CTShapetype shapetype = CTShapetype.Factory.newInstance();
    _shapeTypeId = COMMENT_SHAPE_TYPE_ID;
    shapetype.setId(_shapeTypeId);
    shapetype.setCoordsize("21600,21600");
    shapetype.setSpt(202);
    shapetype.setPath2("m,l,21600r21600,l21600,xe");
    shapetype.addNewStroke().setJoinstyle(STStrokeJoinStyle.MITER);
    CTPath path = shapetype.addNewPath();
    path.setGradientshapeok(STTrueFalse.T);
    path.setConnecttype(STConnectType.RECT);
    _items.add(shapetype);
    _qnames.add(QNAME_SHAPE_TYPE);
}
Also used : CTShapetype(com.microsoft.schemas.vml.CTShapetype) CTIdMap(com.microsoft.schemas.office.office.CTIdMap) CTPath(com.microsoft.schemas.vml.CTPath) CTShapeLayout(com.microsoft.schemas.office.office.CTShapeLayout)

Aggregations

CTIdMap (com.microsoft.schemas.office.office.CTIdMap)1 CTShapeLayout (com.microsoft.schemas.office.office.CTShapeLayout)1 CTPath (com.microsoft.schemas.vml.CTPath)1 CTShapetype (com.microsoft.schemas.vml.CTShapetype)1