Return-Path: Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: (qmail 99069 invoked from network); 26 Mar 2009 10:14:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 10:14:23 -0000 Received: (qmail 31343 invoked by uid 500); 26 Mar 2009 10:14:23 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 31308 invoked by uid 500); 26 Mar 2009 10:14:23 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 31299 invoked by uid 99); 26 Mar 2009 10:14:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 10:14:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 10:14:22 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5AAD423889BB; Thu, 26 Mar 2009 10:14:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r758578 - /poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java Date: Thu, 26 Mar 2009 10:13:59 -0000 To: commits@poi.apache.org From: yegor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090326101402.5AAD423889BB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yegor Date: Thu Mar 26 10:13:50 2009 New Revision: 758578 URL: http://svn.apache.org/viewvc?rev=758578&view=rev Log: support rotation of simple shapes Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java?rev=758578&r1=758577&r2=758578&view=diff ============================================================================== --- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java (original) +++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java Thu Mar 26 10:13:50 2009 @@ -246,6 +246,15 @@ 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(){ Rectangle2D anchor = getAnchor2D(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org