org.apache.poi.xslf.usermodel
Class XSLFGraphicFrame
- java.lang.Object
-
- org.apache.poi.xslf.usermodel.XSLFShape
-
- org.apache.poi.xslf.usermodel.XSLFGraphicFrame
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(java.awt.Graphics2D graphics)Draw this shape into the supplied canvasjava.awt.geom.Rectangle2DgetAnchor()booleangetFlipHorizontal()Whether the shape is horizontally flippedbooleangetFlipVertical()Whether the shape is vertically flippeddoublegetRotation()Rotation angle in degreesintgetShapeId()Returns a unique identifier for this shape within the current document.java.lang.StringgetShapeName()intgetShapeType()XSLFSheetgetSheet()org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFramegetXmlObject()voidsetAnchor(java.awt.geom.Rectangle2D anchor)voidsetFlipHorizontal(boolean flip)voidsetFlipVertical(boolean flip)Whether the shape is vertically flippedvoidsetRotation(double theta)Rotate this shape.
-
-
-
Method Detail
-
getXmlObject
public org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFrame getXmlObject()
- Specified by:
getXmlObjectin classXSLFShape- Returns:
- the xml bean holding this shape's data
-
getSheet
public XSLFSheet getSheet()
-
getShapeType
public int getShapeType()
-
getShapeId
public int getShapeId()
Description copied from class:XSLFShapeReturns a unique identifier for this shape within the current document. This ID may be used to assist in uniquely identifying this object so that it can be referred to by other parts of the document.If multiple objects within the same document share the same id attribute value, then the document shall be considered non-conformant.
- Specified by:
getShapeIdin classXSLFShape- Returns:
- unique id of this shape
-
getShapeName
public java.lang.String getShapeName()
- Specified by:
getShapeNamein classXSLFShape- Returns:
- human-readable name of this shape, e.g. "Rectange 3"
-
getAnchor
public java.awt.geom.Rectangle2D getAnchor()
-
setAnchor
public void setAnchor(java.awt.geom.Rectangle2D 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).
- Specified by:
setRotationin classXSLFShape- Parameters:
theta- the rotation angle in degrees.
-
getRotation
public double getRotation()
Rotation angle in degreesPositive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
- Specified by:
getRotationin classXSLFShape- Returns:
- rotation angle in degrees
-
setFlipHorizontal
public void setFlipHorizontal(boolean flip)
- Specified by:
setFlipHorizontalin classXSLFShape- Parameters:
flip- whether the shape is horizontally flipped
-
setFlipVertical
public void setFlipVertical(boolean flip)
Description copied from class:XSLFShapeWhether the shape is vertically flipped- Specified by:
setFlipVerticalin classXSLFShape- Parameters:
flip- whether the shape is vertically flipped
-
getFlipHorizontal
public boolean getFlipHorizontal()
Whether the shape is horizontally flipped- Specified by:
getFlipHorizontalin classXSLFShape- Returns:
- whether the shape is horizontally flipped
-
getFlipVertical
public boolean getFlipVertical()
Description copied from class:XSLFShapeWhether the shape is vertically flipped- Specified by:
getFlipVerticalin classXSLFShape- Returns:
- whether the shape is vertically flipped
-
-
DataMelt 3.0 © DataMelt by jWork.ORG