Rectangle result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight);
Box parent = getParent(); Rectangle result = null; if (parent.getStyle().getCalculatedStyle().isIdent( CSSName.FS_TEXT_DECORATION_EXTENT, IdentValue.BLOCK)) { result = new Rectangle( getAbsX(), getAbsY() + paintingTop, parent.getAbsX() + parent.tx + parent.getContentWidth() - getAbsX(), paintingHeight); } else { result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight); }
    private boolean intersectsLine(CssContext cssCtx, Shape clip) {        Rectangle result = new Rectangle(                getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight);        return clip.intersects(result);    }