Package org.apache.poi.hslf.model

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


    SlideShow ppt = new SlideShow();
   
    Slide slide = ppt.createSlide();
   
    // Line shape
    Line line = new Line();
    line.setAnchor(new java.awt.Rectangle(50, 50, 100, 20));
    line.setLineColor(new Color(0, 128, 0));
    line.setLineStyle(Line.LINE_DOUBLE);
    slide.addShape(line);
   
    // TextBox
    TextBox txt = new TextBox();
    txt.setText("Hello, World!");
View Full Code Here


        cell.setHorizontalAlignment(TextBox.AlignCenter);
      }
    }
   
    // set table borders
    Line border = table.createBorder();
    border.setLineColor(Color.black);
    border.setLineWidth(1.0);
    table.setAllBorders(border);
   
    // set width of the 1st column
    table.setColumnWidth(0, 300);
    // set width of the 2nd column
View Full Code Here

TOP

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

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.