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

  1. // MapInfoPanel.java
  2. // 17.03.96
  3. //
  4. // info for the map screen, specific to the type of object being displayed
  5.  
  6. package cybcerone.utils;
  7.  
  8. import java.awt.Rectangle;
  9. import java.awt.Color;
  10. import java.awt.Graphics;
  11.  
  12. /** 
  13.  * A generic panel that goes on top of the map screen.
  14.  */
  15. public class MapInfoPanel extends IdPanel {
  16.   private static final Rectangle placement = new Rectangle (0, 0, 734, 135);
  17.  
  18.   protected static final Color gray = new Color (160, 160, 160);
  19.   protected static final Color blue = Color.blue; // new Color (64, 64, 255);
  20.  
  21.   MapInfoPanel (String id, String statusText, Appletlike app) {
  22.     super (id, statusText, app);
  23.     reshape (placement);
  24.     
  25.     setBackground (Color.black);
  26.   }
  27.  
  28.   public void update (Graphics g) {
  29.     g.clearRect (0, 0, size().width, size().height);
  30.     paint (g);
  31.   }
  32. }
  33.