01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
05: * (C) 2001, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.image.io;
18:
19: // Image I/O
20: import javax.imageio.ImageReader;
21: import javax.imageio.event.IIOReadProgressListener;
22:
23: /**
24: * An abstract adapter class for receiving image progress events.
25: * The methods in this class are empty. This class exists as
26: * convenience for creating listener objects.
27: *
28: * @since 2.1
29: * @author Martin Desruisseaux
30: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/image/io/IIOReadProgressAdapter.java $
31: * @version $Id: IIOReadProgressAdapter.java 25467 2007-05-08 16:30:30Z desruisseaux $
32: */
33: public class IIOReadProgressAdapter implements IIOReadProgressListener {
34: /**
35: * Reports that a sequence of read operations is beginning.
36: */
37: public void sequenceStarted(ImageReader source, int minIndex) {
38: }
39:
40: /**
41: * Reports that a sequence of read operationshas completed.
42: */
43: public void sequenceComplete(ImageReader source) {
44: }
45:
46: /**
47: * Reports that an image read operation is beginning.
48: */
49: public void imageStarted(ImageReader source, int imageIndex) {
50: }
51:
52: /**
53: * Reports the approximate degree of completion of the current
54: * {@code read} call of the associated {@code ImageReader}.
55: */
56: public void imageProgress(ImageReader source, float percentageDone) {
57: }
58:
59: /**
60: * Reports that the current image read operation has completed.
61: */
62: public void imageComplete(ImageReader source) {
63: }
64:
65: /**
66: * Reports that a thumbnail read operation is beginning.
67: */
68: public void thumbnailStarted(ImageReader source, int imageIndex,
69: int thumbnailIndex) {
70: }
71:
72: /**
73: * Reports the approximate degree of completion of the current {@code getThumbnail}
74: * call within the associated {@code ImageReader}.
75: */
76: public void thumbnailProgress(ImageReader source,
77: float percentageDone) {
78: }
79:
80: /**
81: * Reports that a thumbnail read operation has completed.
82: */
83: public void thumbnailComplete(ImageReader source) {
84: }
85:
86: /**
87: * Reports that a read has been aborted via the reader's {@code abort} method.
88: */
89: public void readAborted(ImageReader source) {
90: }
91: }
|