org.apache.poi.xslf.usermodel
Class XSLFGraphicFrame

java.lang.Object
  extended by org.apache.poi.xslf.usermodel.XSLFShape
      extended by org.apache.poi.xslf.usermodel.XSLFGraphicFrame
All Implemented Interfaces:
GraphicalFrame<XSLFShape,XSLFTextParagraph>, PlaceableShape<XSLFShape,XSLFTextParagraph>, Shape<XSLFShape,XSLFTextParagraph>
Direct Known Subclasses:
XSLFTable

@Beta
public class XSLFGraphicFrame
extends XSLFShape
implements GraphicalFrame<XSLFShape,XSLFTextParagraph>


Field Summary
 
Fields inherited from class org.apache.poi.xslf.usermodel.XSLFShape
PML_NS
 
Method Summary
 java.awt.geom.Rectangle2D getAnchor()
           
 XSLFPictureShape getFallbackPicture()
           
 boolean getFlipHorizontal()
          Whether the shape is horizontally flipped
 boolean getFlipVertical()
           
 double getRotation()
          Rotation angle in degrees
 ShapeType getShapeType()
           
 void setAnchor(java.awt.geom.Rectangle2D anchor)
           
 void setFlipHorizontal(boolean flip)
           
 void setFlipVertical(boolean flip)
           
 void setRotation(double theta)
          Rotate this shape.
 
Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getParent, getSheet
 
Methods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getParent, getSheet
 

Method Detail

getShapeType

public ShapeType getShapeType()

getAnchor

public java.awt.geom.Rectangle2D getAnchor()
Specified by:
getAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
Specified by:
getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>

setAnchor

public void setAnchor(java.awt.geom.Rectangle2D anchor)
Specified by:
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>

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).

Specified by:
setRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
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).

Specified by:
getRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
Returns:
rotation angle in degrees

setFlipHorizontal

public void setFlipHorizontal(boolean flip)
Specified by:
setFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>

setFlipVertical

public void setFlipVertical(boolean flip)
Specified by:
setFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>

getFlipHorizontal

public boolean getFlipHorizontal()
Whether the shape is horizontally flipped

Specified by:
getFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
Returns:
whether the shape is horizontally flipped

getFlipVertical

public boolean getFlipVertical()
Specified by:
getFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>

getFallbackPicture

public XSLFPictureShape getFallbackPicture()
Specified by:
getFallbackPicture in interface GraphicalFrame<XSLFShape,XSLFTextParagraph>