1. /*
  2. * @(#)TileObserver.java 1.9 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.image;
  8. /**
  9. * An interface for objects that wish to be informed when tiles
  10. * of a WritableRenderedImage become modifiable by some writer via
  11. * a call to getWritableTile, and when they become unmodifiable via
  12. * the last call to releaseWritableTile.
  13. *
  14. * @see WritableRenderedImage
  15. *
  16. * @author Thomas DeWeese
  17. * @author Daniel Rice
  18. */
  19. public interface TileObserver {
  20. /**
  21. * A tile is about to be updated (it is either about to be grabbed
  22. * for writing, or it is being released from writing).
  23. *
  24. * @param source the image that owns the tile.
  25. * @param tileX the X index of the tile that is being updated.
  26. * @param tileY the Y index of the tile that is being updated.
  27. * @param willBeWritable If true, the tile will be grabbed for writing;
  28. * otherwise it is being released.
  29. */
  30. public void tileUpdate(WritableRenderedImage source,
  31. int tileX, int tileY,
  32. boolean willBeWritable);
  33. }