c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), edge.width, textDecoration.getThickness());
if (getStyle().getCalculatedStyle().isIdent( CSSName.FS_TEXT_DECORATION_EXTENT, IdentValue.BLOCK)) { Box last = getLineBox().getLast(); if (last == this) { Box container = getLineBox().getParent(); c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), container.getAbsX() + container.tx + container.getContentWidth() - edge.x, textDecoration.getThickness()); } else { c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), edge.width, textDecoration.getThickness()); } } else { c.getGraphics().fillRect( edge.x, getAbsY() + textDecoration.getOffset(), edge.width, textDecoration.getThickness()); }
    private void paintTextDecoration(RenderingContext c) {        Graphics graphics = c.getGraphics();                Color oldColor = graphics.getColor();                graphics.setColor(getStyle().getCalculatedStyle().getColor());        Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), c);        c.getGraphics().fillRect(                edge.x, getAbsY() + textDecoration.getOffset(),                edge.width, textDecoration.getThickness());                graphics.setColor(oldColor);    }