@Beta public abstract class XSLFShape extends java.lang.Object
Constructor and Description |
---|
XSLFShape() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransform(java.awt.Graphics2D graphics)
Apply 2-D transforms before drawing this shape.
|
abstract void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
|
abstract java.awt.geom.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
Positive angles are clockwise (i.e., towards the positive y axis);
negative angles are counter-clockwise (i.e., towards the negative y axis).
|
abstract int |
getShapeId()
Returns a unique identifier for this shape within the current document.
|
abstract java.lang.String |
getShapeName() |
abstract org.apache.xmlbeans.XmlObject |
getXmlObject() |
abstract void |
setAnchor(java.awt.geom.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 java.awt.geom.Rectangle2D getAnchor()
public abstract void setAnchor(java.awt.geom.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 java.lang.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(java.awt.Graphics2D graphics)
graphics
- the graphics to draw intoprotected void applyTransform(java.awt.Graphics2D graphics)
graphics
- the graphics whos transform matrix will be modifiedCopyright © 2005-2010 Potix Corporation. All Rights Reserved.