public void handleTrace(TraceEventObject e) {
    if (e.getCmd() == TRACE) {
      if (!isBroke) trcstream.println(e.getLine());
      // System.out.println("Writing: "+e.getLine());
    } else if (e.getCmd() == LAYOUT) {
      if (!isBroke) open();
    } else if (e.getCmd() == DISPLAY) {
      if (!isBroke) trcstream.flush();
    }
  }