private void layout(int width) { Rectangle rect = new Rectangle(0, 0, width, DEFAULT_HEIGHT); sharedContext.set_TempCanvas(rect); BlockBox root = BoxBuilder.createRootBox(layoutContext, doc); root.setContainingBlock(new ViewportBox(rect)); root.layout(layoutContext); this.root = root; }
protected boolean isExtentsHaveChanged() { if (rootBox == null) { return true; } else { Rectangle oldExtents = ((ViewportBox)rootBox.getContainingBlock()).getExtents(); if (! oldExtents.equals(getScreenExtents())) { return true; } else { return false; } } }
private void layout(int width) { Rectangle rect = new Rectangle(0, 0, width, DEFAULT_HEIGHT); sharedContext.set_TempCanvas(rect); BlockBox root = BoxBuilder.createRootBox(layoutContext, doc); root.setContainingBlock(new ViewportBox(rect)); root.layout(layoutContext); this.root = root; }
private void layout(int width) { Rectangle rect = new Rectangle(0, 0, width, DEFAULT_HEIGHT); sharedContext.set_TempCanvas(rect); LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, doc); root.setContainingBlock(new ViewportBox(rect)); root.layout(c); this.root = root; }
private void layout(int width) { Rectangle rect = new Rectangle(0, 0, width, DEFAULT_HEIGHT); sharedContext.set_TempCanvas(rect); LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, doc); root.setContainingBlock(new ViewportBox(rect)); root.layout(c); this.root = root; }
Rectangle rect = c.getFixedRectangle(); Box fixed = getMaster(); fixed.setX(0); fixed.setY(0); fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ((BlockBox)fixed).positionAbsolute(c, BlockBox.POSITION_BOTH); fixed.calcPaintingInfo(c, false); } private void paintLayerBackgroundAndBorder(RenderingContext c) {
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); Box fixed = getMaster(); fixed.setX(0); fixed.setY(0); fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ((BlockBox)fixed).positionAbsolute(c, BlockBox.POSITION_BOTH); fixed.calcPaintingInfo(c, false); }
_rootBox.setContainingBlock(new ViewportBox(getInitialExtents(_layout_context))); _rootBox.layout(_layout_context);
public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, _doc); root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c); _dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, _dim.height); root.getLayer().layoutPages(c); _root = root; }
public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, _doc); root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c); Dimension dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, dim.height); root.getLayer().layoutPages(c); _root = root; }
public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, _doc); root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c); Dimension dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, dim.height); root.getLayer().layoutPages(c); _root = root; }
public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, _doc); root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c); Dimension dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, dim.height); root.getLayer().layoutPages(c); _root = root; }
public void layout() { LayoutContext c = newLayoutContext(); BlockBox root = BoxBuilder.createRootBox(c, _doc); root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c); Dimension dim = root.getLayer().getPaintingDimension(c); root.getLayer().trimEmptyPages(c, dim.height); root.getLayer().layoutPages(c); _root = root; }
root.setContainingBlock(new ViewportBox(getInitialExtents(c))); root.layout(c);
root.setContainingBlock(new ViewportBox(getInitialExtents(c)));
rootBox.setContainingBlock(new ViewportBox(new Rectangle(0, 0, first.getContentWidth(layout), first .getContentHeight(layout))));