Example usage for org.apache.poi.hssf.usermodel HSSFShape LINESTYLE_DOTSYS

List of usage examples for org.apache.poi.hssf.usermodel HSSFShape LINESTYLE_DOTSYS

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFShape LINESTYLE_DOTSYS.

Prototype

int LINESTYLE_DOTSYS

To view the source code for org.apache.poi.hssf.usermodel HSSFShape LINESTYLE_DOTSYS.

Click Source Link

Usage

From source file:poi.hssf.usermodel.examples.OfficeDrawing.java

License:Apache License

private static void drawOval(HSSFPatriarch patriarch) {
    // Create an oval and style to taste.
    HSSFClientAnchor a = new HSSFClientAnchor();
    a.setAnchor((short) 2, 2, 20, 20, (short) 2, 2, 190, 80);
    HSSFSimpleShape s = patriarch.createSimpleShape(a);
    s.setShapeType(HSSFSimpleShape.OBJECT_TYPE_OVAL);
    s.setLineStyleColor(10, 10, 10);//from w ww.j  a  v a  2s . c  om
    s.setFillColor(90, 10, 200);
    s.setLineWidth(HSSFShape.LINEWIDTH_ONE_PT * 3);
    s.setLineStyle(HSSFShape.LINESTYLE_DOTSYS);
}