Context c = newContext((Graphics2D) g); executeRenderThread(c);
Context c = newContext(getPageInfo(), (Graphics2D) g); executeRenderThread(c, root);
    public void paintComponent(Graphics g) {        if (anti_aliased) {            // TODO:            // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );        }        if (doc == null) {            return;        }                //Uu.p("paint component () called");        // if this is the first time painting this document, then calc layout        if (bh == null || bh.box == null) {            //Uu.p("dispatching an initial resize event");            //queue.dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, this.getSize()));            Uu.p("skipping the actual painting");        } else {            Context c = newContext((Graphics2D) g);            executeRenderThread(c);        }    }