Package org.apache.poi.xslf.usermodel
Class XSLFGraphicFrame
java.lang.Object
org.apache.poi.xslf.usermodel.XSLFShape
org.apache.poi.xslf.usermodel.XSLFGraphicFrame
- All Implemented Interfaces:
GraphicalFrame<XSLFShape,,XSLFTextParagraph> PlaceableShape<XSLFShape,,XSLFTextParagraph> Shape<XSLFShape,XSLFTextParagraph>
- Direct Known Subclasses:
XSLFDiagram,XSLFObjectShape,XSLFTable
@Beta
public class XSLFGraphicFrame
extends XSLFShape
implements GraphicalFrame<XSLFShape,XSLFTextParagraph>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.xslf.usermodel.XSLFShape
XSLFShape.ReparseFactory<T extends XmlObject> -
Method Summary
Modifier and TypeMethodDescriptiongetChart()booleanWhether the shape is horizontally flippedbooleandoubleRotation angle in degreesThis method is not yet supported.booleanhasChart()booleanvoidsetAnchor(Rectangle2D anchor) voidsetFlipHorizontal(boolean flip) voidsetFlipVertical(boolean flip) voidsetRotation(double theta) Rotate this shape.Methods inherited from class org.apache.poi.xslf.usermodel.XSLFShape
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.sl.usermodel.PlaceableShape
getParent, getSheetMethods inherited from interface org.apache.poi.sl.usermodel.Shape
draw, getParent, getShapeId, getShapeName, getSheet
-
Method Details
-
getShapeType
This method is not yet supported.- Throws:
UnsupportedOperationException- this method is not yet supported
-
getAnchor
- Specified by:
getAnchorin interfacePlaceableShape<XSLFShape,XSLFTextParagraph> - Specified by:
getAnchorin interfaceShape<XSLFShape,XSLFTextParagraph>
-
setAnchor
- Specified by:
setAnchorin interfacePlaceableShape<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:
setRotationin interfacePlaceableShape<XSLFShape,XSLFTextParagraph> - 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 interfacePlaceableShape<XSLFShape,XSLFTextParagraph> - Returns:
- rotation angle in degrees
-
setFlipHorizontal
public void setFlipHorizontal(boolean flip) - Specified by:
setFlipHorizontalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
setFlipVertical
public void setFlipVertical(boolean flip) - Specified by:
setFlipVerticalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
getFlipHorizontal
public boolean getFlipHorizontal()Whether the shape is horizontally flipped- Specified by:
getFlipHorizontalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph> - Returns:
- whether the shape is horizontally flipped
-
getFlipVertical
public boolean getFlipVertical()- Specified by:
getFlipVerticalin interfacePlaceableShape<XSLFShape,XSLFTextParagraph>
-
hasChart
public boolean hasChart() -
hasDiagram
public boolean hasDiagram()- Since:
- 5.2.0
-
getChart
-
getFallbackPicture
- Specified by:
getFallbackPicturein interfaceGraphicalFrame<XSLFShape,XSLFTextParagraph>
-