private void addToContentList(List list) { list.add(this); for (int i = 0; i < getInlineChildCount(); i++) { Object child = (Object)getInlineChild(i); if (child instanceof InlineLayoutBox) { ((InlineLayoutBox)child).addToContentList(list); } else if (child instanceof Box) { list.add(child); } } }
private void addToContentList(List list) { list.add(this); for (int i = 0; i < getInlineChildCount(); i++) { Object child = (Object)getInlineChild(i); if (child instanceof InlineLayoutBox) { ((InlineLayoutBox)child).addToContentList(list); } else if (child instanceof Box) { list.add(child); } } }
public void paintSelection(RenderingContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object child = getInlineChild(i); if (child instanceof InlineText) { ((InlineText)child).paintSelection(c); } } }
protected void restyleChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { ((Box)obj).restyle(c); } } }
private static void positionInlineChildrenVertically(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext) { for (int i = 0; i < current.getInlineChildCount(); i++) { Object child = current.getInlineChild(i); if (child instanceof Box) { positionInlineContentVertically(c, vaContext, (Box)child); } } }
protected void resetChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object object = getInlineChild(i); if (object instanceof Box) { ((Box)object).reset(c); } } }
protected void resetChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object object = getInlineChild(i); if (object instanceof Box) { ((Box)object).reset(c); } } }
public void connectChildrenToCurrentLayer(LayoutContext c) { if (getInlineChildCount() > 0) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { Box box = (Box)obj; box.setContainingLayer(c.getLayer()); box.connectChildrenToCurrentLayer(c); } } } }
public void paintSelection(RenderingContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object child = getInlineChild(i); if (child instanceof InlineText) { ((InlineText)child).paintSelection(c); } } }
public void connectChildrenToCurrentLayer(LayoutContext c) { if (getInlineChildCount() > 0) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { Box box = (Box)obj; box.setContainingLayer(c.getLayer()); box.connectChildrenToCurrentLayer(c); } } } }
private static void positionInlineChildrenVertically(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext) { for (int i = 0; i < current.getInlineChildCount(); i++) { Object child = current.getInlineChild(i); if (child instanceof Box) { positionInlineContentVertically(c, vaContext, (Box)child); } } }
protected void restyleChildren(LayoutContext c) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { ((Box)obj).restyle(c); } } }
public void selectAll() { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { ((Box)obj).selectAll(); } else { ((InlineText)obj).selectAll(); } } }
public void calcChildLocations() { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { Box child = (Box)obj; child.calcCanvasLocation(); child.calcChildLocations(); } } }
public void calcChildLocations() { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { Box child = (Box)obj; child.calcCanvasLocation(); child.calcChildLocations(); } } }
public void selectAll() { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { ((Box)obj).selectAll(); } else { ((InlineText)obj).selectAll(); } } }
private static void moveInlineContents(InlineLayoutBox box, int ty) { for (int i = 0; i < box.getInlineChildCount(); i++) { Object obj = (Object) box.getInlineChild(i); if (obj instanceof Box) { ((Box) obj).setY(((Box) obj).getY() + ty); if (obj instanceof InlineLayoutBox) { moveInlineContents((InlineLayoutBox) obj, ty); } } } }
private static void moveInlineContents(InlineLayoutBox box, int ty) { for (int i = 0; i < box.getInlineChildCount(); i++) { Object obj = box.getInlineChild(i); if (obj instanceof Box) { ((Box) obj).setY(((Box) obj).getY() + ty); if (obj instanceof InlineLayoutBox) { moveInlineContents((InlineLayoutBox) obj, ty); } } } }
protected void calcChildPaintingInfo( CssContext c, PaintingInfo result, boolean useCache) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { PaintingInfo info = ((Box)obj).calcPaintingInfo(c, useCache); moveIfGreater(result.getOuterMarginCorner(), info.getOuterMarginCorner()); result.getAggregateBounds().add(info.getAggregateBounds()); } } }
protected void calcChildPaintingInfo( CssContext c, PaintingInfo result, boolean useCache) { for (int i = 0; i < getInlineChildCount(); i++) { Object obj = getInlineChild(i); if (obj instanceof Box) { PaintingInfo info = ((Box)obj).calcPaintingInfo(c, useCache); moveIfGreater(result.getOuterMarginCorner(), info.getOuterMarginCorner()); result.getAggregateBounds().add(info.getAggregateBounds()); } } }