if (logger.isDebugEnabled()) { logger.debug("render rect=" + rect); }
    public void render (Graphics g)    {        if (logger.isDebugEnabled()) {            logger.debug("render rect=" + rect);        }        if (rect != null) {            g.setXORMode(Color.white);            // Is this is a true rectangle ?            if (rect.width != 0 || rect.height != 0) {                g.setColor(Color.black);                g.drawRect(scaled(rect.x), scaled(rect.y),                           scaled(rect.width), scaled(rect.height));            }            // Draw horizontal & vertical rules (point or rectangle)            g.setColor(ruleColor);            Rectangle vr = component.getVisibleRect();            int x = scaled(rect.x + rect.width/2);            int y = scaled(rect.y + rect.height/2);            g.drawLine(x, vr.y, x, vr.y + vr.height);            g.drawLine(vr.x, y, vr.x + vr.width, y);        }    }