home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / unuy2wen / cybcerone / utils / paintable.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  581 b   |  24 lines

  1. // Paintable.java
  2. // 27.02.96
  3. //
  4. // Objects that know how to paint themselves
  5.  
  6. package cybcerone.utils;
  7.  
  8. import java.awt.Graphics;
  9. import java.awt.image.ImageObserver;
  10.  
  11. /**
  12.  * If it knows how to paint itself, it be Paintable.
  13.  */
  14. public interface Paintable {
  15.   
  16.   /**
  17.    * The object will draw itself in the given Graphics context.  If
  18.    * images are used, their ImageObserver will be linked to the one
  19.    * passed in.  Depending on the object, the values of x and y may
  20.    * be ignored or modified.
  21.    */
  22.   public void paint (Graphics g, int x, int y, ImageObserver observer);
  23. }
  24.