@Beta public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFShape,XSLFTextParagraph>
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
|
XSLFPictureShape |
getFallbackPicture() |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
|
double |
getRotation()
Rotation angle in degrees
|
ShapeType |
getShapeType() |
void |
setAnchor(java.awt.geom.Rectangle2D anchor) |
void |
setFlipHorizontal(boolean flip) |
void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
|
void |
setRotation(double theta)
Rotate this shape.
|
draw, fetchShapeProperty, getBgPr, getBgRef, getChild, getCNvPr, getCTPlaceholder, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, setParent, setPlaceholderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, getSheetpublic ShapeType getShapeType()
public java.awt.geom.Rectangle2D getAnchor()
ShapegetAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>getAnchor in interface Shape<XSLFShape,XSLFTextParagraph>public void setAnchor(java.awt.geom.Rectangle2D anchor)
setAnchor in interface PlaceableShape<XSLFShape,XSLFTextParagraph>anchor - the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic void setRotation(double theta)
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
setRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>theta - the rotation angle in degrees.public double getRotation()
Positive angles are clockwise (i.e., towards the positive y axis); negative angles are counter-clockwise (i.e., towards the negative y axis).
getRotation in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public void setFlipHorizontal(boolean flip)
setFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is horizontally flippedpublic void setFlipVertical(boolean flip)
PlaceableShapesetFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>flip - whether the shape is vertically flippedpublic boolean getFlipHorizontal()
getFlipHorizontal in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public boolean getFlipVertical()
PlaceableShapegetFlipVertical in interface PlaceableShape<XSLFShape,XSLFTextParagraph>public XSLFPictureShape getFallbackPicture()
getFallbackPicture in interface GraphicalFrame<XSLFShape,XSLFTextParagraph>Copyright 2018 The Apache Software Foundation or its licensors, as applicable.