diff options
author | Keiron Liddle <keiron@apache.org> | 2003-02-19 05:55:25 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2003-02-19 05:55:25 +0000 |
commit | 22f3c9698a82459fd124d1b762a93aa5309762c7 (patch) | |
tree | df8c514d3c6f56d98b627e0f21a8e74b1e5f2a48 /src/org/apache/fop | |
parent | 6a961d115263719c4057f24c6c2c197cf1eb43d0 (diff) | |
download | xmlgraphics-fop-22f3c9698a82459fd124d1b762a93aa5309762c7.tar.gz xmlgraphics-fop-22f3c9698a82459fd124d1b762a93aa5309762c7.zip |
fixed some minor errors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r-- | src/org/apache/fop/pdf/FlateFilter.java | 12 | ||||
-rw-r--r-- | src/org/apache/fop/pdf/PDFColor.java | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/org/apache/fop/pdf/FlateFilter.java b/src/org/apache/fop/pdf/FlateFilter.java index c16f2965f..0547adf2f 100644 --- a/src/org/apache/fop/pdf/FlateFilter.java +++ b/src/org/apache/fop/pdf/FlateFilter.java @@ -135,8 +135,8 @@ public class FlateFilter extends PDFFilter { * @param predictor the predictor to use * @throws PDFFilterException if there is an error with the predictor */ - public void setPredictor(int predictor) throws PDFFilterException { - predictor = predictor; + public void setPredictor(int pred) throws PDFFilterException { + predictor = pred; } @@ -155,9 +155,9 @@ public class FlateFilter extends PDFFilter { * @param colors the colors to use * @throws PDFFilterException if predictor is not PREDICTION_NONE */ - public void setColors(int colors) throws PDFFilterException { + public void setColors(int cols) throws PDFFilterException { if (predictor != PREDICTION_NONE) { - colors = colors; + colors = cols; } else { throw new PDFFilterException( "Prediction must not be PREDICTION_NONE in" @@ -205,9 +205,9 @@ public class FlateFilter extends PDFFilter { * @param columns the number of columns to use for the filter * @throws PDFFilterException if predictor is not PREDICTION_NONE */ - public void setColumns(int columns) throws PDFFilterException { + public void setColumns(int cols) throws PDFFilterException { if (predictor != PREDICTION_NONE) { - columns = columns; + columns = cols; } else { throw new PDFFilterException( "Prediction must not be PREDICTION_NONE in" diff --git a/src/org/apache/fop/pdf/PDFColor.java b/src/org/apache/fop/pdf/PDFColor.java index 64955fb0d..89a59e83f 100644 --- a/src/org/apache/fop/pdf/PDFColor.java +++ b/src/org/apache/fop/pdf/PDFColor.java @@ -314,9 +314,9 @@ public class PDFColor extends PDFPathPaint { this.green = 1.0 - this.green; this.blue = 1.0 - this.yellow; - this.red = (this.black / this.blackFactor) + this.red; - this.green = (this.black / this.blackFactor) + this.green; - this.blue = (this.black / this.blackFactor) + this.blue; + this.red = (this.black / PDFColor.blackFactor) + this.red; + this.green = (this.black / PDFColor.blackFactor) + this.green; + this.blue = (this.black / PDFColor.blackFactor) + this.blue; } @@ -381,7 +381,7 @@ public class PDFColor extends PDFPathPaint { tempDouble = this.yellow; } - this.black = (tempDouble / this.blackFactor); + this.black = (tempDouble / PDFColor.blackFactor); } @@ -402,7 +402,7 @@ public class PDFColor extends PDFPathPaint { tempDouble = this.blue; } - this.black = 1.0 - (tempDouble / this.blackFactor); + this.black = 1.0 - (tempDouble / PDFColor.blackFactor); } /** |