public List getElementBoxes(Element elem) { List result = new ArrayList(); for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); if (child.getElement() == elem) { result.add(child); } result.addAll(child.getElementBoxes(elem)); } return result; }
public void clearSelection(List modified) { for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); child.clearSelection(modified); } }
public List getElementBoxes(Element elem) { List result = new ArrayList(); for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); if (child.getElement() == elem) { result.add(child); } result.addAll(child.getElementBoxes(elem)); } return result; }
public void clearSelection(List modified) { for (int i = 0; i < getChildCount(); i++) { Box child = (Box)getChild(i); child.clearSelection(modified); } }
public void selectAll() { for (int i = 0; i < getChildCount(); i++) { Box child = (Box) getChild(i); child.selectAll(); } }
protected void restyleChildren(LayoutContext c) { for (int i = 0; i < getChildCount(); i++) { Box b = getChild(i); b.restyle(c); } }
protected void resetChildren(LayoutContext c) { int remaining = getChildCount(); for (int i = 0; i < remaining; i++) { Box box = getChild(i); box.reset(c); } }
public void selectAll() { for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); child.selectAll(); } }
protected void resetChildren(LayoutContext c) { int remaining = getChildCount(); for (int i = 0; i < remaining; i++) { Box box = getChild(i); box.reset(c); } }
protected void restyleChildren(LayoutContext c) { for (int i = 0; i < getChildCount(); i++) { Box b = getChild(i); b.restyle(c); } }
public void calcChildLocations() { for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); child.calcCanvasLocation(); child.calcChildLocations(); } }
private static void initBoxRefs(Map<Element,Bookmark> map, Box box) { Bookmark bookmark = map.get(box.getElement()); if (bookmark != null) { bookmark.setBox(box); } for (int i = 0, len = box.getChildCount(); i < len; i++) { initBoxRefs(map, box.getChild(i)); } }
private static void initBoxRefs(Map<Element,Bookmark> map, Box box) { Bookmark bookmark = map.get(box.getElement()); if (bookmark != null) { bookmark.setBox(box); } for (int i = 0, len = box.getChildCount(); i < len; i++) { initBoxRefs(map, box.getChild(i)); } }
public void calcChildLocations() { for (int i = 0; i < getChildCount(); i++) { Box child = getChild(i); child.calcCanvasLocation(); child.calcChildLocations(); } }
private static void initBoxRefs(Map<Element,Bookmark> map, Box box) { Bookmark bookmark = map.get(box.getElement()); if (bookmark != null) { bookmark.setBox(box); } for (int i = 0, len = box.getChildCount(); i < len; i++) { initBoxRefs(map, box.getChild(i)); } }
public void connectChildrenToCurrentLayer(LayoutContext c) { for (int i = 0; i < getChildCount(); i++) { Box box = getChild(i); box.setContainingLayer(c.getLayer()); box.connectChildrenToCurrentLayer(c); } }
public void connectChildrenToCurrentLayer(LayoutContext c) { for (int i = 0; i < getChildCount(); i++) { Box box = getChild(i); box.setContainingLayer(c.getLayer()); box.connectChildrenToCurrentLayer(c); } }
public void paintRootElementBackground(RenderingContext c) { PaintingInfo pI = getPaintingInfo(); if (pI != null) { if (getStyle().isHasBackground()) { paintRootElementBackground(c, pI); } else if (getChildCount() > 0) { Box body = getChild(0); body.paintRootElementBackground(c, pI); } } }
protected void calcChildPaintingInfo( CssContext c, PaintingInfo result, boolean useCache) { for (int i = 0; i < getChildCount(); i++) { Box child = (Box) getChild(i); PaintingInfo info = child.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 < getChildCount(); i++) { Box child = getChild(i); PaintingInfo info = child.calcPaintingInfo(c, useCache); moveIfGreater(result.getOuterMarginCorner(), info.getOuterMarginCorner()); result.getAggregateBounds().add(info.getAggregateBounds()); } }