support rotation of simple shapes
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@758578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
46590f58a1
commit
351dd75174
@ -246,6 +246,15 @@ public class SimpleShape extends Shape {
|
|||||||
return angle;
|
return angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rotate this shape
|
||||||
|
*
|
||||||
|
* @param theta the rotation angle in degrees
|
||||||
|
*/
|
||||||
|
public void setRotation(int theta){
|
||||||
|
setEscherProperty(EscherProperties.TRANSFORM__ROTATION, (theta << 16));
|
||||||
|
}
|
||||||
|
|
||||||
public Rectangle2D getLogicalAnchor2D(){
|
public Rectangle2D getLogicalAnchor2D(){
|
||||||
Rectangle2D anchor = getAnchor2D();
|
Rectangle2D anchor = getAnchor2D();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user