Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics)
Draw this shape into the supplied canvas
|
java.awt.geom.Rectangle2D |
getAnchor() |
boolean |
getFlipHorizontal()
Whether the shape is horizontally flipped
|
boolean |
getFlipVertical()
Whether the shape is vertically flipped
|
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).
|
int |
getShapeId()
Returns a unique identifier for this shape within the current document.
|
java.lang.String |
getShapeName() |
int |
getShapeType() |
XSLFSheet |
getSheet() |
org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFrame |
getXmlObject() |
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.
|
applyTransform
public org.openxmlformats.schemas.presentationml.x2006.main.CTGraphicalObjectFrame getXmlObject()
getXmlObject
in class XSLFShape
public XSLFSheet getSheet()
public int getShapeType()
public int getShapeId()
XSLFShape
If multiple objects within the same document share the same id attribute value, then the document shall be considered non-conformant.
getShapeId
in class XSLFShape
public java.lang.String getShapeName()
getShapeName
in class XSLFShape
public java.awt.geom.Rectangle2D getAnchor()
public void setAnchor(java.awt.geom.Rectangle2D anchor)
public 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 class XSLFShape
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 class XSLFShape
public void setFlipHorizontal(boolean flip)
setFlipHorizontal
in class XSLFShape
flip
- whether the shape is horizontally flippedpublic void setFlipVertical(boolean flip)
XSLFShape
setFlipVertical
in class XSLFShape
flip
- whether the shape is vertically flippedpublic boolean getFlipHorizontal()
getFlipHorizontal
in class XSLFShape
public boolean getFlipVertical()
XSLFShape
getFlipVertical
in class XSLFShape
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.