@Beta public abstract class XSLFShape extends Object
Constructor and Description |
---|
XSLFShape() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransform(Graphics2D graphics)
Apply 2-D transforms before drawing this shape.
|
abstract void |
draw(Graphics2D graphics)
Draw this shape into the supplied canvas
|
abstract Rectangle2D |
getAnchor() |
abstract boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
|
abstract boolean |
getFlipVertical()
Whether the shape is vertically flipped
|
abstract double |
getRotation()
Rotation angle in degrees
|
abstract int |
getShapeId()
Returns a unique identifier for this shape within the current document.
|
abstract String |
getShapeName() |
abstract org.apache.xmlbeans.XmlObject |
getXmlObject() |
abstract void |
setAnchor(Rectangle2D anchor) |
abstract void |
setFlipHorizontal(boolean flip) |
abstract void |
setFlipVertical(boolean flip)
Whether the shape is vertically flipped
|
abstract void |
setRotation(double theta)
Rotate this shape.
|
public abstract Rectangle2D getAnchor()
public abstract void setAnchor(Rectangle2D anchor)
anchor
- the position of this shape within the drawing canvas.
The coordinates are expressed in pointspublic abstract org.apache.xmlbeans.XmlObject getXmlObject()
public abstract String getShapeName()
public abstract int getShapeId()
If multiple objects within the same document share the same id attribute value, then the document shall be considered non-conformant.
public abstract 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).
theta
- the rotation angle in degrees.public abstract 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).
public abstract void setFlipHorizontal(boolean flip)
flip
- whether the shape is horizontally flippedpublic abstract void setFlipVertical(boolean flip)
flip
- whether the shape is vertically flippedpublic abstract boolean getFlipHorizontal()
public abstract boolean getFlipVertical()
public abstract void draw(Graphics2D graphics)
graphics
- the graphics to draw intoprotected void applyTransform(Graphics2D graphics)
graphics
- the graphics whos transform matrix will be modifiedCopyright © 2020. All rights reserved.