org.apache.poi.xslf.usermodel
Class XSLFFreeformShape

java.lang.Object
  extended by org.apache.poi.xslf.usermodel.XSLFShape
      extended by org.apache.poi.xslf.usermodel.XSLFSimpleShape
          extended by org.apache.poi.xslf.usermodel.XSLFTextShape
              extended by org.apache.poi.xslf.usermodel.XSLFAutoShape
                  extended by org.apache.poi.xslf.usermodel.XSLFFreeformShape

@Beta
public class XSLFFreeformShape
extends XSLFAutoShape

Represents a custom geometric shape. This shape will consist of a series of lines and curves described within a creation path.

Author:
Yegor Kozlov

Method Summary
 java.awt.geom.GeneralPath getPath()
           
 int setPath(java.awt.geom.GeneralPath path)
          Set the shape path
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFAutoShape
getFillColor, getTextBody, setFillColor
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFTextShape
addNewTextParagraph, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getText, getTextAutofit, getTextBodyPr, getTextDirection, getTextParagraphs, getVerticalAlignment, getWordWrap, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setTextAutofit, setTextDirection, setVerticalAlignment, setWordWrap
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFSimpleShape
getAnchor, getFlipHorizontal, getFlipVertical, getLineCap, getLineColor, getLineDash, getLineWidth, getNvPr, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpPr, getXmlObject, setAnchor, setFlipHorizontal, setFlipVertical, setLineCap, setLineColor, setLineDash, setLineWidth, setRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setPath

public int setPath(java.awt.geom.GeneralPath path)
Set the shape path

Parameters:
path - shape outline
Returns:
the number of points written

getPath

public java.awt.geom.GeneralPath getPath()


Copyright 2011 The Apache Software Foundation or its licensors, as applicable.