c.getGraphics().fillRect( getAbsX(), getAbsY() + textDecoration.getOffset(), getContentWidth(), textDecoration.getThickness());
Box parent = getParent(); if (parent.getStyle().getCalculatedStyle().isIdent( CSSName.FS_TEXT_DECORATION_EXTENT, IdentValue.BLOCK)) { c.getGraphics().fillRect( parent.getAbsX() + parent.tx, getAbsY() + textDecoration.getOffset(), parent.getContentWidth(), textDecoration.getThickness()); } else { c.getGraphics().fillRect( parent.getAbsX() + parent.tx, getAbsY() + textDecoration.getOffset(), getContentWidth() + (getAbsX() - (parent.getAbsX() + parent.tx)), textDecoration.getThickness()); }
    private void paintTextDecoration(RenderingContext c) {        Graphics graphics = c.getGraphics();                Color oldColor = graphics.getColor();                graphics.setColor(getStyle().getCalculatedStyle().getColor());        c.getGraphics().fillRect(                getAbsX(), getAbsY() + textDecoration.getOffset(),                getContentWidth(), textDecoration.getThickness());                graphics.setColor(oldColor);    }