KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > image > TileObserver


1 /*
2  * @(#)TileObserver.java 1.10 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.awt.image;
9
10 /**
11   * An interface for objects that wish to be informed when tiles
12   * of a WritableRenderedImage become modifiable by some writer via
13   * a call to getWritableTile, and when they become unmodifiable via
14   * the last call to releaseWritableTile.
15   *
16   * @see WritableRenderedImage
17   *
18   * @author Thomas DeWeese
19   * @author Daniel Rice
20   */

21 public interface TileObserver {
22
23   /**
24     * A tile is about to be updated (it is either about to be grabbed
25     * for writing, or it is being released from writing).
26     *
27     * @param source the image that owns the tile.
28     * @param tileX the X index of the tile that is being updated.
29     * @param tileY the Y index of the tile that is being updated.
30     * @param willBeWritable If true, the tile will be grabbed for writing;
31     * otherwise it is being released.
32     */

33     public void tileUpdate(WritableRenderedImage JavaDoc source,
34                            int tileX, int tileY,
35                            boolean willBeWritable);
36
37 }
38
Popular Tags