home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / application / DebugGraphicsInfo.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  973 b   |  40 lines  |  [TEXT/CWIE]

  1. // DebugGraphicsInfo.java
  2. // By Ned Etcode
  3. // Copyright 1995, 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.application;
  6.  
  7. import netscape.util.*;
  8.  
  9. class DebugGraphicsInfo {
  10.     ExternalWindow       debugWindow;
  11.     Color                flashColor = Color.red;
  12.     int                  flashTime = 100;
  13.     int                  flashCount = 2;
  14.     Hashtable            viewToDebug;
  15.     java.io.PrintStream  stream = System.out;
  16.  
  17.     void setViewDebug(View view, int debug) {
  18.         if (viewToDebug == null) {
  19.             viewToDebug = new Hashtable();
  20.         }
  21.         viewToDebug.put(view, new Integer(debug));
  22.     }
  23.  
  24.     int viewDebug(View view) {
  25.         if (viewToDebug == null) {
  26.             return 0;
  27.         } else {
  28.             Integer integer = (Integer)viewToDebug.get(view);
  29.  
  30.             return integer == null ? 0 : integer.intValue();
  31.         }
  32.     }
  33.  
  34.     void log(String string) {
  35.         stream.println(string);
  36.     }
  37. }
  38.  
  39.  
  40.