summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2007-04-18 14:22:55 +0000
committerYegor Kozlov <yegor@apache.org>2007-04-18 14:22:55 +0000
commitfd5fb56ff864e253c539908c40eb82c3a1084c79 (patch)
tree537b8d4579051fc915ebd1457e0a10b7266727ae
parente8fa4639783ce2d0891edcb9b1652f2bc103a493 (diff)
downloadpoi-fd5fb56ff864e253c539908c40eb82c3a1084c79.tar.gz
poi-fd5fb56ff864e253c539908c40eb82c3a1084c79.zip
cleaning the code before release
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@530031 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/scratchpad/src/org/apache/poi/hslf/model/Picture.java9
-rw-r--r--src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java4
2 files changed, 3 insertions, 10 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java b/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java
index 66038ec1e4..6de56b4035 100644
--- a/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java
+++ b/src/scratchpad/src/org/apache/poi/hslf/model/Picture.java
@@ -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();
diff --git a/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java b/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java
index 8e0bbf3967..2f634ccd17 100644
--- a/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java
+++ b/src/scratchpad/src/org/apache/poi/hslf/model/SimpleShape.java
@@ -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);