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

  1. // OrientLegend.java
  2. // 16.03.96
  3. // 
  4. // The legend on the orientation screen
  5.  
  6. package cybcerone.orient;
  7.  
  8. import java.awt.Rectangle;
  9.  
  10. import cybcerone.utils.Appletlike;
  11. import cybcerone.utils.IdPanel;
  12.  
  13. /**
  14.  * How to read the map at left.
  15.  */
  16. class OrientLegend extends IdPanel {
  17.   private static final Rectangle placement = new Rectangle(734, 423, 290, 175);
  18.  
  19.   private static final String id = "OrientLegend";
  20.   private static final String statusText = "Legend for the current map";
  21.  
  22.   OrientLegend (Appletlike app) {
  23.     super (id, statusText, app);
  24.     reshape (placement);
  25.   }
  26.  
  27.   /** Use this for the map or the zone */
  28.   void update (Maplike theMap) {
  29.     setBackground (theMap.getLegend ());
  30.     repaint ();
  31.   }
  32. }
  33.