public boolean intersectsInlineBlocks(CssContext cssCtx, Shape clip) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof InlineLayoutBox) { boolean possibleResult = ((InlineLayoutBox)obj).intersectsInlineBlocks(cssCtx, clip); if (possibleResult) { return true; } } else if (obj instanceof Box) { BoxCollector collector = new BoxCollector(); if (collector.intersectsAny(cssCtx, clip, (Box)obj)) { return true; } } } return false; }
private boolean intersectsInlineBlocks(CssContext cssCtx, Shape clip) { for (int i = 0; i < getChildCount(); i++) { Box child = (Box)getChild(i); if (child instanceof InlineLayoutBox) { boolean possibleResult = ((InlineLayoutBox)child).intersectsInlineBlocks( cssCtx, clip); if (possibleResult) { return true; } } else { BoxCollector collector = new BoxCollector(); if (collector.intersectsAny(cssCtx, clip, child)) { return true; } } } return false; }
private boolean intersectsInlineBlocks(CssContext cssCtx, Shape clip) { for (int i = 0; i < getChildCount(); i++) { Box child = (Box)getChild(i); if (child instanceof InlineLayoutBox) { boolean possibleResult = ((InlineLayoutBox)child).intersectsInlineBlocks( cssCtx, clip); if (possibleResult) { return true; } } else { BoxCollector collector = new BoxCollector(); if (collector.intersectsAny(cssCtx, clip, child)) { return true; } } } return false; }
public boolean intersectsInlineBlocks(CssContext cssCtx, Shape clip) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof InlineLayoutBox) { boolean possibleResult = ((InlineLayoutBox)obj).intersectsInlineBlocks(cssCtx, clip); if (possibleResult) { return true; } } else if (obj instanceof Box) { BoxCollector collector = new BoxCollector(); if (collector.intersectsAny(cssCtx, clip, (Box)obj)) { return true; } } } return false; }
BoxRangeLists rangeLists = new BoxRangeLists(); List blocks = new ArrayList(); List lines = new ArrayList(); BoxCollector collector = new BoxCollector(); collector.collect(c, c.getOutputDevice().getClip(), this, startingPoint, blocks, lines, rangeLists); Map collapsedTableBorders = collectCollapsedTableBorders(c, blocks); paintBackgroundsAndBorders(c, blocks, collapsedTableBorders, rangeLists); paintListMarkers(c, blocks, rangeLists); paintInlineContent(c, lines, rangeLists); paintSelection(c, lines); // XXX only do when there is a selection paintReplacedElements(c, blocks, rangeLists); } private void paintListMarkers(RenderingContext c, List blocks, BoxRangeLists rangeLists) {
public void paintAsLayer(RenderingContext c, BlockBox startingPoint) { BoxRangeLists rangeLists = new BoxRangeLists(); List blocks = new ArrayList(); List lines = new ArrayList(); BoxCollector collector = new BoxCollector(); collector.collect(c, c.getOutputDevice().getClip(), this, startingPoint, blocks, lines, rangeLists); Map collapsedTableBorders = collectCollapsedTableBorders(c, blocks); paintBackgroundsAndBorders(c, blocks, collapsedTableBorders, rangeLists); paintListMarkers(c, blocks, rangeLists); paintInlineContent(c, lines, rangeLists); paintSelection(c, lines); // XXX only do when there is a selection paintReplacedElements(c, blocks, rangeLists); }
List lines = new ArrayList(); BoxCollector collector = new BoxCollector(); collector.collect(c, c.getOutputDevice().getClip(), this, blocks, lines, rangeLists);
List lines = new ArrayList(); BoxCollector collector = new BoxCollector(); collector.collect(c, c.getOutputDevice().getClip(), this, blocks, lines, rangeLists);