poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r529206 - /jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java
Date Mon, 16 Apr 2007 11:12:07 GMT
Author: yegor
Date: Mon Apr 16 04:12:03 2007
New Revision: 529206

URL: http://svn.apache.org/viewvc?view=rev&rev=529206
Log:
applied the patch submitted in Bug 38976: added createPicture to HSSFShapeGroup

Modified:
    jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java

Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java
URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java?view=diff&rev=529206&r1=529205&r2=529206
==============================================================================
--- jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java (original)
+++ jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFShapeGroup.java Mon Apr 16
04:12:03 2007
@@ -98,6 +98,22 @@
     }
 
     /**
+     * Creates a picture.
+     *
+     * @param anchor    the client anchor describes how this group is attached
+     *                  to the sheet.
+     * @return  the newly created shape.
+     * @author  zunker
+     */
+    public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex)
+    {
+      HSSFPicture shape = new HSSFPicture(this, anchor);
+      shape.anchor = anchor;
+      shape.setPictureIndex( pictureIndex );
+      shapes.add(shape);
+      return shape;
+    }
+    /**
      * Return all children contained by this shape.
      */
     public List getChildren()
@@ -162,4 +178,5 @@
         }
         return count;
     }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message