PdfPatternPainter.java

1
/*
2
 * Copyright 2002 by Phillip Pan
3
 * 
4
 * The contents of this file are subject to the Mozilla Public License Version 1.1
5
 * (the "License"); you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
7
 *
8
 * Software distributed under the License is distributed on an "AS IS" basis,
9
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10
 * for the specific language governing rights and limitations under the License.
11
 *
12
 * The Original Code is 'iText, a free JAVA-PDF library'.
13
 *
14
 * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
15
 * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
16
 * All Rights Reserved.
17
 * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
18
 * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
19
 *
20
 * Contributor(s): all the names of the contributors are added in the source code
21
 * where applicable.
22
 *
23
 * Alternatively, the contents of this file may be used under the terms of the
24
 * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the
25
 * provisions of LGPL are applicable instead of those above.  If you wish to
26
 * allow use of your version of this file only under the terms of the LGPL
27
 * License and not to allow others to use your version of this file under
28
 * the MPL, indicate your decision by deleting the provisions above and
29
 * replace them with the notice and other provisions required by the LGPL.
30
 * If you do not delete the provisions above, a recipient may use your version
31
 * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.
32
 *
33
 * This library is free software; you can redistribute it and/or modify it
34
 * under the terms of the MPL as stated above or under the terms of the GNU
35
 * Library General Public License as published by the Free Software Foundation;
36
 * either version 2 of the License, or any later version.
37
 *
38
 * This library is distributed in the hope that it will be useful, but WITHOUT
39
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
40
 * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more
41
 * details.
42
 *
43
 * If you didn't download this code from the following link, you should check if
44
 * you aren't using an obsolete version:
45
 * http://www.lowagie.com/iText/
46
 */
47
package com.lowagie.text.pdf;
48
49
import java.awt.Color;
50
import com.lowagie.text.error_messages.MessageLocalization;
51
52
import com.lowagie.text.DocumentException;
53
import com.lowagie.text.Image;
54
import com.lowagie.text.Rectangle;
55
56
/**
57
 * Implements the pattern.
58
 */
59
60
public final class PdfPatternPainter extends PdfTemplate {
61
    
62
    float xstep, ystep;
63
    boolean stencil = false;
64
    Color defaultColor;
65
    
66
    /**
67
     *Creates a <CODE>PdfPattern</CODE>.
68
     */
69
    
70
    private PdfPatternPainter() {
71
        super();
72
        type = TYPE_PATTERN;
73
    }
74
    
75
    /**
76
     * Creates new PdfPattern
77
     *
78
     * @param wr the <CODE>PdfWriter</CODE>
79
     */
80
    
81
    PdfPatternPainter(PdfWriter wr) {
82
        super(wr);
83
        type = TYPE_PATTERN;
84
    }
85
    
86
    PdfPatternPainter(PdfWriter wr, Color defaultColor) {
87
        this(wr);
88
        stencil = true;
89 1 1. : negated conditional → NO_COVERAGE
        if (defaultColor == null)
90
            this.defaultColor = Color.gray;
91
        else
92
            this.defaultColor = defaultColor;
93
    }
94
    
95
    /**
96
     * Sets the horizontal interval of this pattern.
97
     *
98
     * @param xstep the xstep in horizontal painting
99
     */
100
    
101
    public void setXStep(float xstep) {
102
        this.xstep = xstep;
103
    }
104
    
105
    /**
106
     * Sets the vertical interval of this pattern.
107
     *
108
     * @param ystep in vertical painting
109
     */
110
    
111
    public void setYStep(float ystep) {
112
        this.ystep = ystep;
113
    }
114
    
115
    /**
116
     * Returns the horizontal interval when repeating the pattern.
117
     * @return a value
118
     */
119
    public float getXStep() {
120
        return this.xstep;
121
    }
122
    
123
    /**
124
     * Returns the vertical interval when repeating the pattern.
125
     * @return a value
126
     */
127
    public float getYStep() {
128
        return this.ystep;
129
    }
130
    
131
    /**
132
     * Tells you if this pattern is colored/uncolored (stencil = uncolored, you need to set a default color).
133
     * @return true if the pattern is an uncolored tiling pattern (stencil).
134
     */
135
    public boolean isStencil() {
136
        return stencil;
137
    }
138
    
139
    /**
140
     * Sets the transformation matrix for the pattern.
141
     * @param a
142
     * @param b
143
     * @param c
144
     * @param d
145
     * @param e
146
     * @param f
147
     */
148
    public void setPatternMatrix(float a, float b, float c, float d, float e, float f) {
149
        setMatrix(a, b, c, d, e, f);
150
    }
151
    /**
152
     * Gets the stream representing this pattern
153
     * @return the stream representing this pattern
154
     */
155
    PdfPattern getPattern() {
156 1 1. getPattern : mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getPattern to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return new PdfPattern(this);
157
    }
158
    
159
    /**
160
     * Gets the stream representing this pattern
161
     * @param    compressionLevel    the compression level of the stream
162
     * @return the stream representing this pattern
163
     * @since    2.1.3
164
     */
165
    PdfPattern getPattern(int compressionLevel) {
166 1 1. getPattern : mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getPattern to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return new PdfPattern(this, compressionLevel);
167
    }
168
    
169
    /**
170
     * Gets a duplicate of this <CODE>PdfPatternPainter</CODE>. All
171
     * the members are copied by reference but the buffer stays different.
172
     * @return a copy of this <CODE>PdfPatternPainter</CODE>
173
     */
174
    
175
    public PdfContentByte getDuplicate() {
176
        PdfPatternPainter tpl = new PdfPatternPainter();
177
        tpl.writer = writer;
178
        tpl.pdf = pdf;
179
        tpl.thisReference = thisReference;
180
        tpl.pageResources = pageResources;
181
        tpl.bBox = new Rectangle(bBox);
182
        tpl.xstep = xstep;
183
        tpl.ystep = ystep;
184
        tpl.matrix = matrix;
185
        tpl.stencil = stencil;
186
        tpl.defaultColor = defaultColor;
187 1 1. getDuplicate : mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getDuplicate to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return tpl;
188
    }
189
    
190
    /**
191
     * Returns the default color of the pattern.
192
     * @return a Color
193
     */
194
    public Color getDefaultColor() {
195
        return defaultColor;
196
    }
197
    
198
    /**
199
     * @see com.lowagie.text.pdf.PdfContentByte#setGrayFill(float)
200
     */
201
    public void setGrayFill(float gray) {
202 1 1. setGrayFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
203 1 1. setGrayFill : removed call to com/lowagie/text/pdf/PdfTemplate::setGrayFill → NO_COVERAGE
        super.setGrayFill(gray);
204
    }
205
    
206
    /**
207
     * @see com.lowagie.text.pdf.PdfContentByte#resetGrayFill()
208
     */
209
    public void resetGrayFill() {
210 1 1. resetGrayFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
211 1 1. resetGrayFill : removed call to com/lowagie/text/pdf/PdfTemplate::resetGrayFill → NO_COVERAGE
        super.resetGrayFill();
212
    }
213
    
214
    /**
215
     * @see com.lowagie.text.pdf.PdfContentByte#setGrayStroke(float)
216
     */
217
    public void setGrayStroke(float gray) {
218 1 1. setGrayStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
219 1 1. setGrayStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setGrayStroke → NO_COVERAGE
        super.setGrayStroke(gray);
220
    }
221
    
222
    /**
223
     * @see com.lowagie.text.pdf.PdfContentByte#resetGrayStroke()
224
     */
225
    public void resetGrayStroke() {
226 1 1. resetGrayStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
227 1 1. resetGrayStroke : removed call to com/lowagie/text/pdf/PdfTemplate::resetGrayStroke → NO_COVERAGE
        super.resetGrayStroke();
228
    }
229
    
230
    /**
231
     * @see com.lowagie.text.pdf.PdfContentByte#setRGBColorFillF(float, float, float)
232
     */
233
    public void setRGBColorFillF(float red, float green, float blue) {
234 1 1. setRGBColorFillF : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
235 1 1. setRGBColorFillF : removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorFillF → NO_COVERAGE
        super.setRGBColorFillF(red, green, blue);
236
    }
237
    
238
    /**
239
     * @see com.lowagie.text.pdf.PdfContentByte#resetRGBColorFill()
240
     */
241
    public void resetRGBColorFill() {
242 1 1. resetRGBColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
243 1 1. resetRGBColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::resetRGBColorFill → NO_COVERAGE
        super.resetRGBColorFill();
244
    }
245
    
246
    /**
247
     * @see com.lowagie.text.pdf.PdfContentByte#setRGBColorStrokeF(float, float, float)
248
     */
249
    public void setRGBColorStrokeF(float red, float green, float blue) {
250 1 1. setRGBColorStrokeF : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
251 1 1. setRGBColorStrokeF : removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorStrokeF → NO_COVERAGE
        super.setRGBColorStrokeF(red, green, blue);
252
    }
253
    
254
    /**
255
     * @see com.lowagie.text.pdf.PdfContentByte#resetRGBColorStroke()
256
     */
257
    public void resetRGBColorStroke() {
258 1 1. resetRGBColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
259 1 1. resetRGBColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::resetRGBColorStroke → NO_COVERAGE
        super.resetRGBColorStroke();
260
    }
261
    
262
    /**
263
     * @see com.lowagie.text.pdf.PdfContentByte#setCMYKColorFillF(float, float, float, float)
264
     */
265
    public void setCMYKColorFillF(float cyan, float magenta, float yellow, float black) {
266 1 1. setCMYKColorFillF : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
267 1 1. setCMYKColorFillF : removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorFillF → NO_COVERAGE
        super.setCMYKColorFillF(cyan, magenta, yellow, black);
268
    }
269
    
270
    /**
271
     * @see com.lowagie.text.pdf.PdfContentByte#resetCMYKColorFill()
272
     */
273
    public void resetCMYKColorFill() {
274 1 1. resetCMYKColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
275 1 1. resetCMYKColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::resetCMYKColorFill → NO_COVERAGE
        super.resetCMYKColorFill();
276
    }
277
    
278
    /**
279
     * @see com.lowagie.text.pdf.PdfContentByte#setCMYKColorStrokeF(float, float, float, float)
280
     */
281
    public void setCMYKColorStrokeF(float cyan, float magenta, float yellow, float black) {
282 1 1. setCMYKColorStrokeF : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
283 1 1. setCMYKColorStrokeF : removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorStrokeF → NO_COVERAGE
        super.setCMYKColorStrokeF(cyan, magenta, yellow, black);
284
    }
285
    
286
    /**
287
     * @see com.lowagie.text.pdf.PdfContentByte#resetCMYKColorStroke()
288
     */
289
    public void resetCMYKColorStroke() {
290 1 1. resetCMYKColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
291 1 1. resetCMYKColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::resetCMYKColorStroke → NO_COVERAGE
        super.resetCMYKColorStroke();
292
    }
293
    
294
    /**
295
     * @see com.lowagie.text.pdf.PdfContentByte#addImage(com.lowagie.text.Image, float, float, float, float, float, float)
296
     */
297
    public void addImage(Image image, float a, float b, float c, float d, float e, float f) throws DocumentException {
298 2 1. addImage : negated conditional → NO_COVERAGE
2. addImage : negated conditional → NO_COVERAGE
        if (stencil && !image.isMask())
299 1 1. addImage : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
            checkNoColor();
300 1 1. addImage : removed call to com/lowagie/text/pdf/PdfTemplate::addImage → NO_COVERAGE
        super.addImage(image, a, b, c, d, e, f);
301
    }
302
    
303
    /**
304
     * @see com.lowagie.text.pdf.PdfContentByte#setCMYKColorFill(int, int, int, int)
305
     */
306
    public void setCMYKColorFill(int cyan, int magenta, int yellow, int black) {
307 1 1. setCMYKColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
308 1 1. setCMYKColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorFill → NO_COVERAGE
        super.setCMYKColorFill(cyan, magenta, yellow, black);
309
    }
310
    
311
    /**
312
     * @see com.lowagie.text.pdf.PdfContentByte#setCMYKColorStroke(int, int, int, int)
313
     */
314
    public void setCMYKColorStroke(int cyan, int magenta, int yellow, int black) {
315 1 1. setCMYKColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
316 1 1. setCMYKColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorStroke → NO_COVERAGE
        super.setCMYKColorStroke(cyan, magenta, yellow, black);
317
    }
318
    
319
    /**
320
     * @see com.lowagie.text.pdf.PdfContentByte#setRGBColorFill(int, int, int)
321
     */
322
    public void setRGBColorFill(int red, int green, int blue) {
323 1 1. setRGBColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
324 1 1. setRGBColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorFill → NO_COVERAGE
        super.setRGBColorFill(red, green, blue);
325
    }
326
    
327
    /**
328
     * @see com.lowagie.text.pdf.PdfContentByte#setRGBColorStroke(int, int, int)
329
     */
330
    public void setRGBColorStroke(int red, int green, int blue) {
331 1 1. setRGBColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
332 1 1. setRGBColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorStroke → NO_COVERAGE
        super.setRGBColorStroke(red, green, blue);
333
    }
334
    
335
    /**
336
     * @see com.lowagie.text.pdf.PdfContentByte#setColorStroke(java.awt.Color)
337
     */
338
    public void setColorStroke(Color color) {
339 1 1. setColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
340 1 1. setColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setColorStroke → NO_COVERAGE
        super.setColorStroke(color);
341
    }
342
    
343
    /**
344
     * @see com.lowagie.text.pdf.PdfContentByte#setColorFill(java.awt.Color)
345
     */
346
    public void setColorFill(Color color) {
347 1 1. setColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
348 1 1. setColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::setColorFill → NO_COVERAGE
        super.setColorFill(color);
349
    }
350
    
351
    /**
352
     * @see com.lowagie.text.pdf.PdfContentByte#setColorFill(com.lowagie.text.pdf.PdfSpotColor, float)
353
     */
354
    public void setColorFill(PdfSpotColor sp, float tint) {
355 1 1. setColorFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
356 1 1. setColorFill : removed call to com/lowagie/text/pdf/PdfTemplate::setColorFill → NO_COVERAGE
        super.setColorFill(sp, tint);
357
    }
358
    
359
    /**
360
     * @see com.lowagie.text.pdf.PdfContentByte#setColorStroke(com.lowagie.text.pdf.PdfSpotColor, float)
361
     */
362
    public void setColorStroke(PdfSpotColor sp, float tint) {
363 1 1. setColorStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
364 1 1. setColorStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setColorStroke → NO_COVERAGE
        super.setColorStroke(sp, tint);
365
    }
366
    
367
    /**
368
     * @see com.lowagie.text.pdf.PdfContentByte#setPatternFill(com.lowagie.text.pdf.PdfPatternPainter)
369
     */
370
    public void setPatternFill(PdfPatternPainter p) {
371 1 1. setPatternFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
372 1 1. setPatternFill : removed call to com/lowagie/text/pdf/PdfTemplate::setPatternFill → NO_COVERAGE
        super.setPatternFill(p);
373
    }
374
    
375
    /**
376
     * @see com.lowagie.text.pdf.PdfContentByte#setPatternFill(com.lowagie.text.pdf.PdfPatternPainter, java.awt.Color, float)
377
     */
378
    public void setPatternFill(PdfPatternPainter p, Color color, float tint) {
379 1 1. setPatternFill : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
380 1 1. setPatternFill : removed call to com/lowagie/text/pdf/PdfTemplate::setPatternFill → NO_COVERAGE
        super.setPatternFill(p, color, tint);
381
    }
382
    
383
    /**
384
     * @see com.lowagie.text.pdf.PdfContentByte#setPatternStroke(com.lowagie.text.pdf.PdfPatternPainter, java.awt.Color, float)
385
     */
386
    public void setPatternStroke(PdfPatternPainter p, Color color, float tint) {
387 1 1. setPatternStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
388 1 1. setPatternStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setPatternStroke → NO_COVERAGE
        super.setPatternStroke(p, color, tint);
389
    }
390
    
391
    /**
392
     * @see com.lowagie.text.pdf.PdfContentByte#setPatternStroke(com.lowagie.text.pdf.PdfPatternPainter)
393
     */
394
    public void setPatternStroke(PdfPatternPainter p) {
395 1 1. setPatternStroke : removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE
        checkNoColor();
396 1 1. setPatternStroke : removed call to com/lowagie/text/pdf/PdfTemplate::setPatternStroke → NO_COVERAGE
        super.setPatternStroke(p);
397
    }
398
    
399
    void checkNoColor() {
400 1 1. checkNoColor : negated conditional → NO_COVERAGE
        if (stencil)
401
            throw new RuntimeException(MessageLocalization.getComposedMessage("colors.are.not.allowed.in.uncolored.tile.patterns"));
402
    }
403
}

Mutations

89

1.1
Location :
Killed by : none
negated conditional → NO_COVERAGE

156

1.1
Location : getPattern
Killed by : none
mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getPattern to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

166

1.1
Location : getPattern
Killed by : none
mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getPattern to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

187

1.1
Location : getDuplicate
Killed by : none
mutated return of Object value for com/lowagie/text/pdf/PdfPatternPainter::getDuplicate to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

202

1.1
Location : setGrayFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

203

1.1
Location : setGrayFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setGrayFill → NO_COVERAGE

210

1.1
Location : resetGrayFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

211

1.1
Location : resetGrayFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetGrayFill → NO_COVERAGE

218

1.1
Location : setGrayStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

219

1.1
Location : setGrayStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setGrayStroke → NO_COVERAGE

226

1.1
Location : resetGrayStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

227

1.1
Location : resetGrayStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetGrayStroke → NO_COVERAGE

234

1.1
Location : setRGBColorFillF
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

235

1.1
Location : setRGBColorFillF
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorFillF → NO_COVERAGE

242

1.1
Location : resetRGBColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

243

1.1
Location : resetRGBColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetRGBColorFill → NO_COVERAGE

250

1.1
Location : setRGBColorStrokeF
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

251

1.1
Location : setRGBColorStrokeF
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorStrokeF → NO_COVERAGE

258

1.1
Location : resetRGBColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

259

1.1
Location : resetRGBColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetRGBColorStroke → NO_COVERAGE

266

1.1
Location : setCMYKColorFillF
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

267

1.1
Location : setCMYKColorFillF
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorFillF → NO_COVERAGE

274

1.1
Location : resetCMYKColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

275

1.1
Location : resetCMYKColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetCMYKColorFill → NO_COVERAGE

282

1.1
Location : setCMYKColorStrokeF
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

283

1.1
Location : setCMYKColorStrokeF
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorStrokeF → NO_COVERAGE

290

1.1
Location : resetCMYKColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

291

1.1
Location : resetCMYKColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::resetCMYKColorStroke → NO_COVERAGE

298

1.1
Location : addImage
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : addImage
Killed by : none
negated conditional → NO_COVERAGE

299

1.1
Location : addImage
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

300

1.1
Location : addImage
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::addImage → NO_COVERAGE

307

1.1
Location : setCMYKColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

308

1.1
Location : setCMYKColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorFill → NO_COVERAGE

315

1.1
Location : setCMYKColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

316

1.1
Location : setCMYKColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setCMYKColorStroke → NO_COVERAGE

323

1.1
Location : setRGBColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

324

1.1
Location : setRGBColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorFill → NO_COVERAGE

331

1.1
Location : setRGBColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

332

1.1
Location : setRGBColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setRGBColorStroke → NO_COVERAGE

339

1.1
Location : setColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

340

1.1
Location : setColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setColorStroke → NO_COVERAGE

347

1.1
Location : setColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

348

1.1
Location : setColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setColorFill → NO_COVERAGE

355

1.1
Location : setColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

356

1.1
Location : setColorFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setColorFill → NO_COVERAGE

363

1.1
Location : setColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

364

1.1
Location : setColorStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setColorStroke → NO_COVERAGE

371

1.1
Location : setPatternFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

372

1.1
Location : setPatternFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setPatternFill → NO_COVERAGE

379

1.1
Location : setPatternFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

380

1.1
Location : setPatternFill
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setPatternFill → NO_COVERAGE

387

1.1
Location : setPatternStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

388

1.1
Location : setPatternStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setPatternStroke → NO_COVERAGE

395

1.1
Location : setPatternStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfPatternPainter::checkNoColor → NO_COVERAGE

396

1.1
Location : setPatternStroke
Killed by : none
removed call to com/lowagie/text/pdf/PdfTemplate::setPatternStroke → NO_COVERAGE

400

1.1
Location : checkNoColor
Killed by : none
negated conditional → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.4.2