home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / netscape / application / DebugGraphicsInfo.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-12  |  1.3 KB  |  42 lines

  1. package netscape.application;
  2.  
  3. import java.io.PrintStream;
  4. import netscape.util.Hashtable;
  5.  
  6. class DebugGraphicsInfo {
  7.    ExternalWindow debugWindow;
  8.    Color flashColor;
  9.    int flashTime;
  10.    int flashCount;
  11.    Hashtable viewToDebug;
  12.    PrintStream stream;
  13.  
  14.    void setViewDebug(View var1, int var2) {
  15.       if (this.viewToDebug == null) {
  16.          this.viewToDebug = new Hashtable();
  17.       }
  18.  
  19.       this.viewToDebug.put(var1, new Integer(var2));
  20.    }
  21.  
  22.    int viewDebug(View var1) {
  23.       if (this.viewToDebug == null) {
  24.          return 0;
  25.       } else {
  26.          Integer var2 = (Integer)this.viewToDebug.get(var1);
  27.          return var2 == null ? 0 : var2;
  28.       }
  29.    }
  30.  
  31.    void log(String var1) {
  32.       this.stream.println(var1);
  33.    }
  34.  
  35.    DebugGraphicsInfo() {
  36.       this.flashColor = Color.red;
  37.       this.flashTime = 100;
  38.       this.flashCount = 2;
  39.       this.stream = System.out;
  40.    }
  41. }
  42.