|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.xslf.usermodel.XSLFShape
@Beta public abstract class XSLFShape
Base super-class class for all shapes in PresentationML
Constructor Summary | |
---|---|
XSLFShape()
|
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLFShape()
Method Detail |
---|
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 modified
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |