public void pushClipRegion(RenderingContext c, int contentIndex) { while (_current != null && _current.getRange().getStart() == contentIndex) { _current.setClip(_outputDevice.getClip()); _clipRegionStack.add(_current); _outputDevice.clip(_current.getBox().getChildrenClipEdge(c)); if (_rangeIndex == _rangeList.size() - 1) { _current = null; } else { _current = (BoxRangeData)_rangeList.get(++_rangeIndex); } } }
public void pushClipRegion(RenderingContext c, int contentIndex) { while (_current != null && _current.getRange().getStart() == contentIndex) { _current.setClip(_outputDevice.getClip()); _clipRegionStack.add(_current); _outputDevice.clip(_current.getBox().getChildrenClipEdge(c)); if (_rangeIndex == _rangeList.size() - 1) { _current = null; } else { _current = (BoxRangeData)_rangeList.get(++_rangeIndex); } } }
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); }
Shape working = c.getOutputDevice().getClip();
collector.collect(c, c.getOutputDevice().getClip(), this, blocks, lines, rangeLists);
collector.collect(c, c.getOutputDevice().getClip(), this, blocks, lines, rangeLists);