* @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;
}
* @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"
* @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"
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;
}
tempDouble = this.yellow;
}
- this.black = (tempDouble / this.blackFactor);
+ this.black = (tempDouble / PDFColor.blackFactor);
}
tempDouble = this.blue;
}
- this.black = 1.0 - (tempDouble / this.blackFactor);
+ this.black = 1.0 - (tempDouble / PDFColor.blackFactor);
}
/**