]> source.dussan.org Git - poi.git/commitdiff
cleaning the code before release
authorYegor Kozlov <yegor@apache.org>
Wed, 18 Apr 2007 14:22:55 +0000 (14:22 +0000)
committerYegor Kozlov <yegor@apache.org>
Wed, 18 Apr 2007 14:22:55 +0000 (14:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@530031 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/model/Picture.java
src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java

index 66038ec1e49baa2b751661d21abec4da9a82ce3e..6de56b4035cac516eeca27b94e0b16ca900bae42 100644 (file)
@@ -33,13 +33,6 @@ import java.util.Arrays;
 
 /**
  * Represents a picture in a PowerPoint document.
- * <p>
- * The information about an image in PowerPoint document is stored in
- * two places:
- *  <li> EscherBSE container in the Document keeps information about image
- *    type, image index to refer by slides etc.
- *  <li> "Pictures" OLE stream holds the actual data of the image.
- * </p>
  *
  * @author Yegor Kozlov
  */
@@ -134,6 +127,8 @@ public class Picture extends SimpleShape {
 
     /**
      * Resize this picture to the default size.
+     * For PNG and JPEG resizes the image to 100%,
+     * for other types sets the default size of 200x200 pixels.  
      */
     public void setDefaultSize(){
         PictureData pict = getPictureData();
index 8e0bbf39676cf854e348c00eba213e9754b7b040..2f634ccd17aeced262076feb2432f4447413194e 100644 (file)
@@ -179,10 +179,8 @@ public class SimpleShape extends Shape {
 
     /**
      * The color used to fill this shape.
-     *
-     * @param color the background color
      */
-    public Color getFillColor(Color color){
+    public Color getFillColor(){
         EscherOptRecord opt = (EscherOptRecord)getEscherChild(_escherContainer, EscherOptRecord.RECORD_ID);
         EscherSimpleProperty p1 = (EscherSimpleProperty)getEscherProperty(opt, EscherProperties.FILL__FILLCOLOR);
         EscherSimpleProperty p2= (EscherSimpleProperty)getEscherProperty(opt, EscherProperties.FILL__NOFILLHITTEST);