public int getRightFloatDistance() { return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); } });
public void translate(int x, int y) { getBlockFormattingContext().translate(x, y); }
public int getRightFloatDistance() { return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); } });
public int getLeftFloatDistance() { return c.getBlockFormattingContext().getLeftFloatDistance(c, current, maxAvailableWidth); }
public void translate(int x, int y) { getBlockFormattingContext().translate(x, y); }
public int getLeftFloatDistance() { return c.getBlockFormattingContext().getLeftFloatDistance(c, current, maxAvailableWidth); }
public void calcInitialFloatedCanvasLocation(LayoutContext c) { Point offset = c.getBlockFormattingContext().getOffset(); FloatManager manager = c.getBlockFormattingContext().getFloatManager(); setAbsX(manager.getMaster().getAbsX() + getX() - offset.x); setAbsY(manager.getMaster().getAbsY() + getY() - offset.y); }
public void calcInitialFloatedCanvasLocation(LayoutContext c) { Point offset = c.getBlockFormattingContext().getOffset(); FloatManager manager = c.getBlockFormattingContext().getFloatManager(); setAbsX(manager.getMaster().getAbsX() + getX() - offset.x); setAbsY(manager.getMaster().getAbsY() + getY() - offset.y); }
private void calcClearance(LayoutContext c) { if (getStyle().isCleared() && ! getStyle().isFloated()) { c.translate(0, -getY()); c.getBlockFormattingContext().clear(c, this); c.translate(0, getY()); calcCanvasLocation(); } }
private void calcClearance(LayoutContext c) { if (getStyle().isCleared() && ! getStyle().isFloated()) { c.translate(0, -getY()); c.getBlockFormattingContext().clear(c, this); c.translate(0, getY()); calcCanvasLocation(); } }
private static void alignLine(final LayoutContext c, final LineBox current, final int maxAvailableWidth) { if (! current.isContainsDynamicFunction() && ! current.getParent().getStyle().isTextJustify()) { current.setFloatDistances(new FloatDistances() { public int getLeftFloatDistance() { return c.getBlockFormattingContext().getLeftFloatDistance(c, current, maxAvailableWidth); } public int getRightFloatDistance() { return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); } }); } else { FloatDistances distances = new FloatDistances(); distances.setLeftFloatDistance( c.getBlockFormattingContext().getLeftFloatDistance( c, current, maxAvailableWidth)); distances.setRightFloatDistance( c.getBlockFormattingContext().getRightFloatDistance( c, current, maxAvailableWidth)); current.setFloatDistances(distances); } current.align(false); if (! current.isContainsDynamicFunction() && ! current.getParent().getStyle().isTextJustify()) { current.setFloatDistances(null); } }
private static void alignLine(final LayoutContext c, final LineBox current, final int maxAvailableWidth) { if (! current.isContainsDynamicFunction() && ! current.getParent().getStyle().isTextJustify()) { current.setFloatDistances(new FloatDistances() { public int getLeftFloatDistance() { return c.getBlockFormattingContext().getLeftFloatDistance(c, current, maxAvailableWidth); } public int getRightFloatDistance() { return c.getBlockFormattingContext().getRightFloatDistance(c, current, maxAvailableWidth); } }); } else { FloatDistances distances = new FloatDistances(); distances.setLeftFloatDistance( c.getBlockFormattingContext().getLeftFloatDistance( c, current, maxAvailableWidth)); distances.setRightFloatDistance( c.getBlockFormattingContext().getRightFloatDistance( c, current, maxAvailableWidth)); current.setFloatDistances(distances); } current.align(false); if (! current.isContainsDynamicFunction() && ! current.getParent().getStyle().isTextJustify()) { current.setFloatDistances(null); } }
block.setContainingLayer(currentLine.getContainingLayer()); block.layout(c); c.getBlockFormattingContext().floatBox(c, block); block.setContainingLayer(currentLine.getContainingLayer()); block.layout(c); c.getBlockFormattingContext().floatBox(c, block);
block.setContainingLayer(currentLine.getContainingLayer()); block.layout(c); c.getBlockFormattingContext().floatBox(c, (BlockBox) block); block.setContainingLayer(currentLine.getContainingLayer()); block.layout(c); c.getBlockFormattingContext().floatBox(c, (BlockBox) block);
c.getBlockFormattingContext().floatBox(c, (BlockBox) block);
c.getBlockFormattingContext().floatBox(c, block);
remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); c, iB.getStyle(), remainingWidth - fit, lbContext, false); if (lbContext.isUnbreakable() && ! currentLine.isContainsContent()) { int delta = c.getBlockFormattingContext().getNextLineBoxDelta(c, currentLine, maxAvailableWidth); if (delta > 0) { currentLine.setY(currentLine.getY() + delta); currentLine.calcCanvasLocation(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, maxAvailableWidth); lbContext.resetEnd(); continue; null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth);
remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth);
if (getStyle().isAutoHeight()) { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, getTy() + getHeight()); if (delta > 0) {
if (getStyle().isAutoHeight()) { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, getTy() + getHeight()); if (delta > 0) {