public void provideSiblingMarginToFloats(int margin) { for (Iterator i = getInlineContent().iterator(); i.hasNext(); ) { Styleable styleable = (Styleable)i.next(); if (styleable instanceof BlockBox) { BlockBox b = (BlockBox)styleable; if (b.isFloated()) { b.getFloatedBoxData().setMarginFromSibling(margin); } } } }
public void provideSiblingMarginToFloats(int margin) { for (Iterator i = getInlineContent().iterator(); i.hasNext(); ) { Styleable styleable = (Styleable)i.next(); if (styleable instanceof BlockBox) { BlockBox b = (BlockBox)styleable; if (b.isFloated()) { b.getFloatedBoxData().setMarginFromSibling(margin); } } } }
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }
public void reset(LayoutContext c) { super.reset(c); setTopMarginCalculated(false); setBottomMarginCalculated(false); setDimensionsCalculated(false); setMinMaxCalculated(false); setChildrenHeight(0); if (isReplaced()) { getReplacedElement().detach(c); setReplacedElement(null); } if (getChildrenContentType() == BlockBox.CONTENT_INLINE) { removeAllChildren(); } if (isFloated()) { _floatedBoxData.getManager().removeFloat(this); _floatedBoxData.getDrawingLayer().removeFloat(this); } if (getStyle().isRunning()) { c.getRootLayer().removeRunningBlock(this); } }
public void calcCanvasLocation() { if (isFloated()) { FloatManager manager = _floatedBoxData.getManager(); Point offset = manager.getOffset(this);
public void calcCanvasLocation() { if (isFloated()) { FloatManager manager = _floatedBoxData.getManager(); Point offset = manager.getOffset(this);
setHeight(0); if (! isAnonymous() || (isFromCaptionedTable() && isFloated())) { int pinnedContentWidth = -1;
setHeight(0); if (! isAnonymous() || (isFromCaptionedTable() && isFloated())) { int pinnedContentWidth = -1;