Package org.docx4j.vml

Examples of org.docx4j.vml.CTShapetype


    Pict pict = wmlObjectFactory.createPict();
    JAXBElement<org.docx4j.wml.Pict> pictWrapped = wmlObjectFactory.createRPict(pict);
    org.docx4j.vml.ObjectFactory vmlObjectFactory = new org.docx4j.vml.ObjectFactory();
   
        // Create object for shapetype (wrapped in JAXBElement)
        CTShapetype shapetype = vmlObjectFactory.createCTShapetype();
        JAXBElement<org.docx4j.vml.CTShapetype> shapetypeWrapped = vmlObjectFactory.createShapetype(shapetype);
        pict.getAnyAndAny().add( shapetypeWrapped);
            shapetype.setInsetmode(org.docx4j.vml.officedrawing.STInsetMode.CUSTOM);
            shapetype.setSpt( new Float(202.0) );
            shapetype.setConnectortype(org.docx4j.vml.officedrawing.STConnectorType.STRAIGHT);
            // Create object for stroke (wrapped in JAXBElement)
            CTStroke stroke = vmlObjectFactory.createCTStroke();
            JAXBElement<org.docx4j.vml.CTStroke> strokeWrapped = vmlObjectFactory.createStroke(stroke);
            shapetype.getEGShapeElements().add( strokeWrapped);
                stroke.setJoinstyle(org.docx4j.vml.STStrokeJoinStyle.MITER);
            // Create object for path (wrapped in JAXBElement)
            CTPath path = vmlObjectFactory.createCTPath();
            JAXBElement<org.docx4j.vml.CTPath> pathWrapped = vmlObjectFactory.createPath(path);
            shapetype.getEGShapeElements().add( pathWrapped);
                path.setGradientshapeok(org.docx4j.vml.STTrueFalse.T);
                path.setConnecttype(org.docx4j.vml.officedrawing.STConnectType.RECT);
            shapetype.setCoordsize( "21600,21600");
            shapetype.setVmlId( "_x0000_t202");
            shapetype.setHralign(org.docx4j.vml.officedrawing.STHrAlign.LEFT);
            shapetype.setPath( "m,l,21600r21600,l21600,xe");
           
        // Create object for shape (wrapped in JAXBElement)
        CTShape shape = vmlObjectFactory.createCTShape();
        JAXBElement<org.docx4j.vml.CTShape> shapeWrapped = vmlObjectFactory.createShape(shape);
       
View Full Code Here

TOP

Related Classes of org.docx4j.vml.CTShapetype

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.