lx + inline.x + xoff, ly + inline.y - inline.height, dw - xoff, inline.height);
lx + inline.x + xoff, top, dw - xoff, height);
    public static void paintSelection(Context c, InlineBox inline, int lx, int ly) {        if (c.inSelection(inline)) {            int dw = inline.width - 2;            int xoff = 0;            if (c.getSelectionEnd() == inline) {                dw = c.getSelectionEndX();            }            if (c.getSelectionStart() == inline) {                xoff = c.getSelectionStartX();            }            c.getGraphics().setColor(new Color(200, 200, 255));            ((Graphics2D) c.getGraphics()).setPaint(new GradientPaint(                    0, 0, new Color(235, 235, 255),                    0, inline.height / 2, new Color(190, 190, 235),                    true));            c.getGraphics().fillRect(                    lx + inline.x + xoff, ly + inline.y - inline.height,                    dw - xoff, inline.height);        }    }