pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1622535 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
Date Thu, 04 Sep 2014 19:24:38 GMT
Author: tilman
Date: Thu Sep  4 19:24:37 2014
New Revision: 1622535

URL: http://svn.apache.org/r1622535
Log:
PDFBOX-1094: fix javadoc

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java?rev=1622535&r1=1622534&r2=1622535&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDPattern.java
Thu Sep  4 19:24:37 2014
@@ -53,6 +53,8 @@ public final class PDPattern extends PDS
 
     /**
      * Creates a new pattern color space.
+     * 
+     * @param patterns The pattern map.
      */
     public PDPattern(Map<String, PDAbstractPattern> patterns)
     {
@@ -61,6 +63,9 @@ public final class PDPattern extends PDS
 
     /**
      * Creates a new uncolored tiling pattern color space.
+     * 
+     * @param patterns The pattern map.
+     * @param colorSpace The underlying colorspace.
      */
     public PDPattern(Map<String, PDAbstractPattern> patterns, PDColorSpace colorSpace)
     {
@@ -143,7 +148,7 @@ public final class PDPattern extends PDS
             PDShading shading = shadingPattern.getShading();
             if (shading == null)
             {
-                LOG.error("shadingPattern ist null, will be filled with transparency");
+                LOG.error("shadingPattern is null, will be filled with transparency");
                 return new Color(0,0,0,0);
             }
             Matrix patternMatrix = shadingPattern.getMatrix();
@@ -157,8 +162,12 @@ public final class PDPattern extends PDS
 
     /**
      * Returns the pattern for the given color.
+     * 
      * @param color color containing a pattern name
+     * 
      * @return pattern for the given color
+     * 
+     * @throws java.io.IOException if the pattern name was not found.
      */
     public final PDAbstractPattern getPattern(PDColor color) throws IOException
     {



Mime
View raw message