jdk/src/java.desktop/share/classes/javax/imageio/event/IIOReadUpdateListener.java
author martin
Thu, 30 Oct 2014 07:31:41 -0700
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 35667 ed476aba94de
permissions -rw-r--r--
8067377: My hobby: caning, then then canning, the the can-can Summary: Fix ALL the stutters! Reviewed-by: rriggs, mchung, lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 21278
diff changeset
     2
 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.imageio.event;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.image.BufferedImage;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.util.EventListener;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import javax.imageio.ImageReader;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * An interface used by <code>ImageReader</code> implementations to
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * notify callers of their image and thumbnail reading methods of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * pixel updates.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @see javax.imageio.ImageReader#addIIOReadUpdateListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * @see javax.imageio.ImageReader#removeIIOReadUpdateListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
public interface IIOReadUpdateListener extends EventListener {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
     * Reports that the current read operation is about to begin a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
     * progressive pass.  Readers of formats that support progressive
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
     * encoding should use this to notify clients when each pass is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     * completed when reading a progressively encoded image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
     * <p> An estimate of the area that will be updated by the pass is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * indicated by the <code>minX</code>, <code>minY</code>,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     * <code>width</code>, and <code>height</code> parameters.  If the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * pass is interlaced, that is, it only updates selected rows or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     * columns, the <code>periodX</code> and <code>periodY</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
     * parameters will indicate the degree of subsampling.  The set of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
     * bands that may be affected is indicated by the value of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
     * <code>bands</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * @param source the <code>ImageReader</code> object calling this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * @param theImage the <code>BufferedImage</code> being updated.
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
    61
     * @param pass the number of the pass that is about to begin,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * starting with 0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     * @param minPass the index of the first pass that will be decoded.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
     * @param maxPass the index of the last pass that will be decoded.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
     * @param minX the X coordinate of the leftmost updated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * @param minY the Y coordinate of the uppermost updated row
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * @param periodX the horizontal spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * @param periodY the vertical spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * a value of 1 means no gaps.
28059
e576535359cc 8067377: My hobby: caning, then then canning, the the can-can
martin
parents: 25859
diff changeset
    73
     * @param bands an array of <code>int</code>s indicating the
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * set bands that may be updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    void passStarted(ImageReader source,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                     BufferedImage theImage,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                     int pass,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                     int minPass, int maxPass,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                     int minX, int minY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                     int periodX, int periodY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                     int[] bands);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * Reports that a given region of the image has been updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     * The application might choose to redisplay the specified area,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
     * for example, in order to provide a progressive display effect,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
     * or perform other incremental processing.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * <p> Note that different image format readers may produce
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * decoded pixels in a variety of different orders.  Many readers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * will produce pixels in a simple top-to-bottom,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     * left-to-right-order, but others may use multiple passes of
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * interlacing, tiling, etc.  The sequence of updates may even
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * differ from call to call depending on network speeds, for
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     * example.  A call to this method does not guarantee that all the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * specified pixels have actually been updated, only that some
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * activity has taken place within some subregion of the one
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * specified.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * <p> The particular <code>ImageReader</code> implementation may
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * choose how often to provide updates.  Each update specifies
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * that a given region of the image has been updated since the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * last update.  A region is described by its spatial bounding box
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * (<code>minX</code>, <code>minY</code>, <code>width</code>, and
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * <code>height</code>); X and Y subsampling factors
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * (<code>periodX</code> and <code>periodY</code>); and a set of
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     * updated bands (<code>bands</code>).  For example, the update:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * minX = 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * minY = 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * width = 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * height = 4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     * periodX = 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * periodY = 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * bands = { 1, 3 }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * would indicate that bands 1 and 3 of the following pixels were
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * updated:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * (10, 20) (12, 20) (14, 20)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * (10, 23) (12, 23) (14, 23)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * (10, 26) (12, 26) (14, 26)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * (10, 29) (12, 29) (14, 29)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * @param source the <code>ImageReader</code> object calling this method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * @param theImage the <code>BufferedImage</code> being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * @param minX the X coordinate of the leftmost updated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * @param minY the Y coordinate of the uppermost updated row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * @param width the number of updated pixels horizontally.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     * @param height the number of updated pixels vertically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * @param periodX the horizontal spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @param periodY the vertical spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * @param bands an array of <code>int</code>s indicating which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * bands are being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    void imageUpdate(ImageReader source,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                     BufferedImage theImage,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                     int minX, int minY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                     int width, int height,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                     int periodX, int periodY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                     int[] bands);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * Reports that the current read operation has completed a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * progressive pass.  Readers of formats that support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * progressive encoding should use this to notify clients when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * each pass is completed when reading a progressively
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * encoded image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @param source the <code>ImageReader</code> object calling this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * @param theImage the <code>BufferedImage</code> being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * @see javax.imageio.ImageReadParam#setSourceProgressivePasses(int, int)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    void passComplete(ImageReader source, BufferedImage theImage);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * Reports that the current thumbnail read operation is about to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * begin a progressive pass.  Readers of formats that support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * progressive encoding should use this to notify clients when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     * each pass is completed when reading a progressively encoded
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     * thumbnail image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @param source the <code>ImageReader</code> object calling this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     * @param theThumbnail the <code>BufferedImage</code> thumbnail
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     * being updated.
21278
ef8a3a2a72f2 8022746: List of spelling errors in API doc
malenkov
parents: 5506
diff changeset
   178
     * @param pass the number of the pass that is about to begin,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     * starting with 0.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @param minPass the index of the first pass that will be decoded.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     * @param maxPass the index of the last pass that will be decoded.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     * @param minX the X coordinate of the leftmost updated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
     * @param minY the Y coordinate of the uppermost updated row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
     * @param periodX the horizontal spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     * @param periodY the vertical spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * a value of 1 means no gaps.
28059
e576535359cc 8067377: My hobby: caning, then then canning, the the can-can
martin
parents: 25859
diff changeset
   190
     * @param bands an array of <code>int</code>s indicating the
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * set bands that may be updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @see #passStarted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    void thumbnailPassStarted(ImageReader source,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                              BufferedImage theThumbnail,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                              int pass,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                              int minPass, int maxPass,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                              int minX, int minY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                              int periodX, int periodY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                              int[] bands);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * Reports that a given region of a thumbnail image has been updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * The application might choose to redisplay the specified area,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     * for example, in order to provide a progressive display effect,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
     * or perform other incremental processing.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
     * @param source the <code>ImageReader</code> object calling this method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
     * @param theThumbnail the <code>BufferedImage</code> thumbnail
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
     * being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * @param minX the X coordinate of the leftmost updated column
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     * @param minY the Y coordinate of the uppermost updated row
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * of pixels.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     * @param width the number of updated pixels horizontally.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @param height the number of updated pixels vertically.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * @param periodX the horizontal spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * @param periodY the vertical spacing between updated pixels;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     * a value of 1 means no gaps.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
     * @param bands an array of <code>int</code>s indicating which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
     * bands are being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
     * @see #imageUpdate
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
    void thumbnailUpdate(ImageReader source,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                         BufferedImage theThumbnail,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                         int minX, int minY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                         int width, int height,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                         int periodX, int periodY,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                         int[] bands);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
     * Reports that the current thumbnail read operation has completed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * a progressive pass.  Readers of formats that support
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     * progressive encoding should use this to notify clients when
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * each pass is completed when reading a progressively encoded
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     * thumbnail image.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
     * @param source the <code>ImageReader</code> object calling this
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
     * method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
     * @param theThumbnail the <code>BufferedImage</code> thumbnail
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
     * being updated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     * @see #passComplete
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    void thumbnailPassComplete(ImageReader source, BufferedImage theThumbnail);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
}