public void exportText(RenderingContext c, Writer writer) throws IOException { if (c.isPrint() && isRoot()) { c.setPage(0, (PageBox)c.getRootLayer().getPages().get(0)); c.getPage().exportLeadingText(c, writer); } for (Iterator i = getChildIterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.exportText(c, writer); } if (c.isPrint() && isRoot()) { exportPageBoxText(c, writer); } }
public void exportText(RenderingContext c, Writer writer) throws IOException { if (c.isPrint() && isRoot()) { c.setPage(0, (PageBox)c.getRootLayer().getPages().get(0)); c.getPage().exportLeadingText(c, writer); } for (Iterator i = getChildIterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.exportText(c, writer); } if (c.isPrint() && isRoot()) { exportPageBoxText(c, writer); } }
public Rectangle getFixedRectangle() { Rectangle result; if (! isPrint()) { result = sharedContext.getFixedRectangle(); } else { result = new Rectangle(0, -this.page.getTop(), this.page.getContentWidth(this), this.page.getContentHeight(this)-1); } result.translate(-1, -1); return result; }
public Rectangle getFixedRectangle() { Rectangle result; if (! isPrint()) { result = sharedContext.getFixedRectangle(); } else { result = new Rectangle(0, -this.page.getTop(), this.page.getContentWidth(this), this.page.getContentHeight(this)-1); } result.translate(-1, -1); return result; }
if (!c.isPrint()) { root.paint(c); } else {
if (!c.isPrint()) { root.paint(c); } else {
protected void doRender(RenderingContext c) { try { c.getOutputDevice().translate(-_origin.x, -_origin.y); long start = System.currentTimeMillis(); if (c.isPrint()) { paintPagedView(c, _rootBox.getLayer()); } else { _rootBox.getLayer().paint(c); } long after = System.currentTimeMillis(); if (Configuration.isTrue("xr.incremental.repaint.print-timing", false)) { Uu.p("repaint took ms: " + (after - start)); } } catch (Throwable e) { XRLog.exception(e.getMessage(), e); } ((SWTOutputDevice) c.getOutputDevice()).clean(); }
public boolean isNeedsClipOnPaint(RenderingContext c) { boolean result = super.isNeedsClipOnPaint(c); if (result) { return result; } return c.isPrint() && getTable().getStyle().isPaginateTable() && ((TableRowBox)getParent()).getContentLimitContainer().isContainsMultiplePages(); } }
public boolean isNeedsClipOnPaint(RenderingContext c) { boolean result = super.isNeedsClipOnPaint(c); if (result) { return result; } return c.isPrint() && getTable().getStyle().isPaginateTable() && ((TableRowBox)getParent()).getContentLimitContainer().isContainsMultiplePages(); } }
public void paintBackground(RenderingContext c) { if (isPaintBackgroundsAndBorders() && getStyle().isVisible()) { Rectangle bounds; if (c.isPrint() && getTable().getStyle().isPaginateTable()) { bounds = getContentLimitedBorderEdge(c); } else { bounds = getPaintingBorderEdge(c); } if (bounds != null) { paintBackgroundStack(c, bounds); } } }
public void paintBackground(RenderingContext c) { if (isPaintBackgroundsAndBorders() && getStyle().isVisible()) { Rectangle bounds; if (c.isPrint() && getTable().getStyle().isPaginateTable()) { bounds = getContentLimitedBorderEdge(c); } else { bounds = getPaintingBorderEdge(c); } if (bounds != null) { paintBackgroundStack(c, bounds); } } }
public Rectangle getChildrenClipEdge(RenderingContext c) { if (c.isPrint() && getTable().getStyle().isPaginateTable()) { Rectangle bounds = getContentLimitedBorderEdge(c); if (bounds != null) { BorderPropertySet border = getBorder(c); RectPropertySet padding = getPadding(c); bounds.y += (int)border.top() + (int)padding.top(); bounds.height -= (int)border.height() + (int)padding.height(); return bounds; } } return super.getChildrenClipEdge(c); }
public Rectangle getChildrenClipEdge(RenderingContext c) { if (c.isPrint() && getTable().getStyle().isPaginateTable()) { Rectangle bounds = getContentLimitedBorderEdge(c); if (bounds != null) { BorderPropertySet border = getBorder(c); RectPropertySet padding = getPadding(c); bounds.y += (int)border.top() + (int)padding.top(); bounds.height -= (int)border.height() + (int)padding.height(); return bounds; } } return super.getChildrenClipEdge(c); }
public void paintBorder(RenderingContext c) { if (isPaintBackgroundsAndBorders() && ! hasCollapsedPaintingBorder()) { // Collapsed table borders are painted separately if (c.isPrint() && getTable().getStyle().isPaginateTable() && getStyle().isVisible()) { Rectangle bounds = getContentLimitedBorderEdge(c); if (bounds != null) { c.getOutputDevice().paintBorder(c, getStyle(), bounds, getBorderSides()); } } else { super.paintBorder(c); } } }
public void paintBorder(RenderingContext c) { if (isPaintBackgroundsAndBorders() && ! hasCollapsedPaintingBorder()) { // Collapsed table borders are painted separately if (c.isPrint() && getTable().getStyle().isPaginateTable() && getStyle().isVisible()) { Rectangle bounds = getContentLimitedBorderEdge(c); if (bounds != null) { c.getOutputDevice().paintBorder(c, getStyle(), bounds, getBorderSides()); } } else { super.paintBorder(c); } } }