/** * <B>NOTE</B>: This method does not consider any children of this box */ public boolean intersects(CssContext cssCtx, Shape clip) { return clip == null || clip.intersects(getPaintingClipEdge(cssCtx)); }
/** * <B>NOTE</B>: This method does not consider any children of this box */ public boolean intersects(CssContext cssCtx, Shape clip) { return clip == null || clip.intersects(getPaintingClipEdge(cssCtx)); }
public Rectangle getPaintingClipEdge(CssContext cssCtx) { Rectangle result = super.getPaintingClipEdge(cssCtx); // HACK Don't know how wide the list marker is (or even where it is) // so extend the bounding box all the way over to the left edge of // the canvas if (getStyle().isListItem()) { int delta = result.x; result.x = 0; result.width += delta; } return result; }
public Rectangle getPaintingClipEdge(CssContext cssCtx) { Rectangle result = super.getPaintingClipEdge(cssCtx); // HACK Don't know how wide the list marker is (or even where it is) // so extend the bounding box all the way over to the left edge of // the canvas if (getStyle().isListItem()) { int delta = result.x; result.x = 0; result.width += delta; } return result; }
public PaintingInfo calcPaintingInfo(CssContext c, boolean useCache) { PaintingInfo cached = getPaintingInfo(); if (cached != null && useCache) { return cached; } final PaintingInfo result = new PaintingInfo(); Rectangle bounds = getMarginEdge(getAbsX(), getAbsY(), c, 0, 0); result.setOuterMarginCorner( new Dimension(bounds.x + bounds.width, bounds.y + bounds.height)); result.setAggregateBounds(getPaintingClipEdge(c)); calcChildPaintingInfo(c, result, useCache); setPaintingInfo(result); return result; }
public PaintingInfo calcPaintingInfo(CssContext c, boolean useCache) { PaintingInfo cached = getPaintingInfo(); if (cached != null && useCache) { return cached; } final PaintingInfo result = new PaintingInfo(); Rectangle bounds = getMarginEdge(getAbsX(), getAbsY(), c, 0, 0); result.setOuterMarginCorner( new Dimension(bounds.x + bounds.width, bounds.y + bounds.height)); result.setAggregateBounds(getPaintingClipEdge(c)); if (!getStyle().isOverflowApplies() || getStyle().isOverflowVisible()) { calcChildPaintingInfo(c, result, useCache); } setPaintingInfo(result); return result; }