public int getRightFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth) { return getFloatManager().getRightFloatDistance(cssCtx, this, line, containingBlockWidth); }
public int getFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth) { return getLeftFloatDistance(cssCtx, line, containingBlockWidth) + getRightFloatDistance(cssCtx, line, containingBlockWidth); }
private boolean overlaps(CssContext cssCtx, BlockFormattingContext bfc, BlockBox current, List floats) { Point offset = bfc.getOffset(); Rectangle bounds = current.getMarginEdge(cssCtx, -offset.x, -offset.y); for (Iterator i = floats.iterator(); i.hasNext();) { BoxOffset floater = (BoxOffset) i.next(); Rectangle floaterBounds = floater.getBox().getMarginEdge(cssCtx, -floater.getX(), -floater.getY()); if (floaterBounds.intersects(bounds)) { return true; } } return false; }
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); }
BlockFormattingContext bfc = new BlockFormattingContext(this, c); c.pushBFC(bfc); if (getStyle().isAutoHeight()) { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, getTy() + getHeight()); if (delta > 0) {
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);
private void calcClearance(LayoutContext c) { if (getStyle().isCleared() && ! getStyle().isFloated()) { c.translate(0, -getY()); c.getBlockFormattingContext().clear(c, this); c.translate(0, getY()); calcCanvasLocation(); } }
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); }
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);
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); }
BlockFormattingContext bfc = new BlockFormattingContext(this, c); c.pushBFC(bfc); if (getStyle().isAutoHeight()) { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, getTy() + getHeight()); if (delta > 0) {
private void calcClearance(LayoutContext c) { if (getStyle().isCleared() && ! getStyle().isFloated()) { c.translate(0, -getY()); c.getBlockFormattingContext().clear(c, this); c.translate(0, getY()); calcCanvasLocation(); } }
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 int getFloatDistance(CssContext cssCtx, LineBox line, int containingBlockWidth) { return getLeftFloatDistance(cssCtx, line, containingBlockWidth) + getRightFloatDistance(cssCtx, line, containingBlockWidth); }