1. /*
  2. * @(#)TileObserver.java 1.7 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.image;
  11. /**
  12. * An interface for objects that wish to be informed when tiles
  13. * of a WritableRenderedImage become modifiable by some writer via
  14. * a call to getWritableTile, and when they become unmodifiable via
  15. * the last call to releaseWritableTile.
  16. *
  17. * @see WritableRenderedImage
  18. *
  19. * @author Thomas DeWeese
  20. * @author Daniel Rice
  21. */
  22. public interface TileObserver {
  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 source,
  34. int tileX, int tileY,
  35. boolean willBeWritable);
  36. }