gov.lbl.genome.gui
Class Debug

java.lang.Object
  extended by gov.lbl.genome.gui.Debug

public class Debug
extends java.lang.Object

Title: Debug

Description: Provide debug output for the applet

Copyright: Copyright (c) 2002 Ernest Orlando Lawrence Berkeley National Laboratory

Company: LBNL


Field Summary
static Debug action
           
 java.lang.String buffer
           
static Debug comm
           
static Debug init
           
 
Constructor Summary
Debug(java.lang.String name)
           
 
Method Summary
 void debug(java.lang.Object o)
          Print a message to the standatd output
 void debug(java.lang.Object o, java.lang.String msg)
          Print a message to the standatd output
static void debugException(java.lang.Throwable e)
          Print an error's stackTrace.
 void debugOff()
          Disable debug printing
 void debugOn()
          Enable debug printing
static void error(java.lang.Object o, java.lang.String msg)
          Print a message to the standatd output
static void setDebugExceptions(boolean status)
          enable or disable printing of exceptions
 void setDebugMode(boolean mode)
          Set debug mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

public java.lang.String buffer

init

public static Debug init

comm

public static Debug comm

action

public static Debug action
Constructor Detail

Debug

public Debug(java.lang.String name)
Method Detail

debug

public void debug(java.lang.Object o,
                  java.lang.String msg)
Print a message to the standatd output

Parameters:
o - Object
msg - String

debug

public void debug(java.lang.Object o)
Print a message to the standatd output

Parameters:
o - Object

debugException

public static void debugException(java.lang.Throwable e)
Print an error's stackTrace.

Parameters:
e - Throwable

setDebugExceptions

public static void setDebugExceptions(boolean status)
enable or disable printing of exceptions

Parameters:
status - boolean

error

public static void error(java.lang.Object o,
                         java.lang.String msg)
Print a message to the standatd output

Parameters:
o - Object
msg - String

debugOn

public void debugOn()
Enable debug printing


debugOff

public void debugOff()
Disable debug printing


setDebugMode

public void setDebugMode(boolean mode)
Set debug mode

Parameters:
mode - boolean