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:
Shape<XSLFShape,XSLFTextParagraph>
Direct Known Subclasses:
XSLFTable

@Beta
@DrawNotImplemented
public class XSLFGraphicFrame
extends XSLFShape

Author:
Yegor Kozlov

Method Summary
 java.awt.Rectangle getAnchor()
          Returns the anchor (the bounding box rectangle) of this shape.
 boolean getFlipHorizontal()
          Whether the shape is horizontally flipped
 boolean getFlipVertical()
           
 double getRotation()
          Rotation angle in degrees
 ShapeType getShapeType()
           
 void setAnchor(java.awt.Rectangle 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
fetchShapeProperty, getBgPr, getBgRef, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getPaint, getParent, getShapeId, getShapeName, getSheet, getSpPr, 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
 

Method Detail

getShapeType

public ShapeType getShapeType()

getAnchor

public java.awt.Rectangle getAnchor()
Description copied from interface: Shape
Returns the anchor (the bounding box rectangle) of this shape. All coordinates are expressed in points (72 dpi).

Returns:
the anchor of this shape

setAnchor

public void setAnchor(java.awt.Rectangle anchor)

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


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