org.apache.poi.xslf.usermodel
Class XSLFAutoShape

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
Direct Known Subclasses:
XSLFFreeformShape, XSLFTextBox

@Beta
public class XSLFAutoShape
extends XSLFTextShape

Represents a preset geometric shape.

Author:
Yegor Kozlov

Method Summary
 java.awt.Color getFillColor()
           
protected  org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
           
 void setFillColor(java.awt.Color color)
          Specifies a solid color fill.
 
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

setFillColor

public void setFillColor(java.awt.Color color)
Specifies a solid color fill. The shape is filled entirely with the specified color.

Overrides:
setFillColor in class XSLFTextShape
Parameters:
color - the solid color fill. The value of null unsets the solidFIll attribute from the underlying xml

getFillColor

public java.awt.Color getFillColor()
Overrides:
getFillColor in class XSLFTextShape
Returns:
solid fill color of null if not set

getTextBody

protected org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody getTextBody(boolean create)
Specified by:
getTextBody in class XSLFTextShape


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