Package org.apache.poi.hslf.model

Examples of org.apache.poi.hslf.model.AutoShape


     * @param cor
     */
    public static void adicionaLinha(Slide s, int posicaoX, int posicaoY, int largura,
                      int altura,Color cor) {
     
        AutoShape sh = new AutoShape(ShapeTypes.Line);
        sh.setAnchor(new java.awt.Rectangle(posicaoX, posicaoY, largura, altura));          
        sh.setLineColor(cor);           
        s.addShape(sh);
     
    }
View Full Code Here


   
    slide.addShape(txt);
   
    // Autoshape
    // 32-point star
    AutoShape sh1 = new AutoShape(ShapeTypes.Star32);
    sh1.setAnchor(new java.awt.Rectangle(50, 50, 100, 200));
    sh1.setFillColor(Color.red);
    slide.addShape(sh1);
   
    // Trapezoid
    AutoShape sh2 = new AutoShape(ShapeTypes.Trapezoid);
    sh2.setAnchor(new java.awt.Rectangle(150, 150, 100, 200));
    sh2.setFillColor(Color.blue);
    slide.addShape(sh2);
   
    FileOutputStream out = new FileOutputStream("data/ImageInSlides_Apache.ppt");
    ppt.write(out);
    out.close();
View Full Code Here

TOP

Related Classes of org.apache.poi.hslf.model.AutoShape

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.