org.apache.poi.xslf.usermodel
Class XSLFSimpleShape

java.lang.Object
  extended by org.apache.poi.xslf.usermodel.XSLFShape
      extended by org.apache.poi.xslf.usermodel.XSLFSimpleShape
Direct Known Subclasses:
XSLFConnectorShape, XSLFPictureShape, XSLFTextShape

@Beta
public abstract class XSLFSimpleShape
extends XSLFShape

Author:
Yegor Kozlov

Method Summary
 java.awt.geom.Rectangle2D getAnchor()
           
 boolean getFlipHorizontal()
          Whether the shape is horizontally flipped
 boolean getFlipVertical()
           
 LineCap getLineCap()
           
 java.awt.Color getLineColor()
           
 LineDash getLineDash()
           
 double getLineWidth()
           
protected  org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps getNvPr()
           
 double getRotation()
          Rotation angle in degrees
 int getShapeId()
           
 java.lang.String getShapeName()
           
 int getShapeType()
          TODO match STShapeType with ShapeTypes
 XSLFSheet getSheet()
           
protected  org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getSpPr()
           
 org.apache.xmlbeans.XmlObject getXmlObject()
           
 void setAnchor(java.awt.geom.Rectangle2D anchor)
           
 void setFlipHorizontal(boolean flip)
           
 void setFlipVertical(boolean flip)
           
 void setLineCap(LineCap cap)
           
 void setLineColor(java.awt.Color color)
           
 void setLineDash(LineDash dash)
           
 void setLineWidth(double width)
           
 void setRotation(double theta)
          Rotate this shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject()
Specified by:
getXmlObject in class XSLFShape

getSheet

public XSLFSheet getSheet()

getShapeType

public int getShapeType()
TODO match STShapeType with ShapeTypes


getShapeName

public java.lang.String getShapeName()
Specified by:
getShapeName in class XSLFShape

getShapeId

public int getShapeId()
Specified by:
getShapeId in class XSLFShape

getNvPr

protected org.openxmlformats.schemas.drawingml.x2006.main.CTNonVisualDrawingProps getNvPr()

getSpPr

protected org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getSpPr()

getAnchor

public java.awt.geom.Rectangle2D getAnchor()
Specified by:
getAnchor in class XSLFShape

setAnchor

public void setAnchor(java.awt.geom.Rectangle2D anchor)
Specified by:
setAnchor in class XSLFShape

setRotation

public void setRotation(double theta)
Rotate this shape.

Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

Parameters:
theta - the rotation angle in degrees.

getRotation

public double getRotation()
Rotation angle in degrees

Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).

Returns:
rotation angle in degrees

setFlipHorizontal

public void setFlipHorizontal(boolean flip)

setFlipVertical

public void setFlipVertical(boolean flip)

getFlipHorizontal

public boolean getFlipHorizontal()
Whether the shape is horizontally flipped

Returns:
whether the shape is horizontally flipped

getFlipVertical

public boolean getFlipVertical()

setLineColor

public void setLineColor(java.awt.Color color)

getLineColor

public java.awt.Color getLineColor()

setLineWidth

public void setLineWidth(double width)

getLineWidth

public double getLineWidth()

setLineDash

public void setLineDash(LineDash dash)

getLineDash

public LineDash getLineDash()

setLineCap

public void setLineCap(LineCap cap)

getLineCap

public LineCap getLineCap()


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