@Beta public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame<XSLFShape,XSLFTextParagraph>
XSLFShape.ReparseFactory<T extends org.apache.xmlbeans.XmlObject>
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getAnchor()
Returns the anchor (the bounding box rectangle) of this shape.
|
XSLFChart |
getChart() |
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() |
boolean |
hasChart() |
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, getFillPaint, getGrpSpPr, getParent, getPlaceholder, getPlaceholderDetails, getShapeId, getShapeName, getShapeProperties, getSheet, getSpStyle, getXmlObject, isPlaceholder, selectPaint, selectPaint, selectPaint, selectPaint, selectPaint, selectProperty, selectProperty, setParent, setPlaceholder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getParent, getShapeId, getShapeName, getSheet
getParent, getSheet
public ShapeType getShapeType()
public java.awt.geom.Rectangle2D getAnchor()
Shape
getAnchor
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)
PlaceableShape
setFlipVertical
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
flip
- whether the shape is vertically flippedpublic boolean getFlipHorizontal()
getFlipHorizontal
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
public boolean getFlipVertical()
PlaceableShape
getFlipVertical
in interface PlaceableShape<XSLFShape,XSLFTextParagraph>
public boolean hasChart()
public XSLFChart getChart()
public XSLFPictureShape getFallbackPicture()
getFallbackPicture
in interface GraphicalFrame<XSLFShape,XSLFTextParagraph>
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.