public String dump(LayoutContext c, String indent, int which) { if (which != Box.DUMP_RENDER) { throw new IllegalArgumentException(); } StringBuffer result = new StringBuffer(indent); result.append(this); result.append('\n'); dumpBoxes(c, indent, getNonFlowContent(), Box.DUMP_RENDER, result); if (getNonFlowContent().size() > 0 ) { result.append('\n'); } dumpBoxes(c, indent, getChildren(), Box.DUMP_RENDER, result); return result.toString(); }
public void clearSelection(List modified) { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.clearSelection(modified); } super.clearSelection(modified); }
public void reset(LayoutContext c) { for (int i = 0; i < getNonFlowContent().size(); i++) { Box content = (Box)getNonFlowContent().get(i); content.reset(c); } if (_markerData != null) { _markerData.restorePreviousReferenceLine(this); } super.reset(c); }
public String dump(LayoutContext c, String indent, int which) { if (which != Box.DUMP_RENDER) { throw new IllegalArgumentException(); } StringBuffer result = new StringBuffer(indent); result.append(this); result.append('\n'); dumpBoxes(c, indent, getNonFlowContent(), Box.DUMP_RENDER, result); if (getNonFlowContent().size() > 0 ) { result.append('\n'); } dumpBoxes(c, indent, getChildren(), Box.DUMP_RENDER, result); return result.toString(); }
public void reset(LayoutContext c) { for (int i = 0; i < getNonFlowContent().size(); i++) { Box content = (Box)getNonFlowContent().get(i); content.reset(c); } if (_markerData != null) { _markerData.restorePreviousReferenceLine(this); } super.reset(c); }
public void selectAll() { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { BlockBox box = (BlockBox)i.next(); box.selectAll(); } super.selectAll(); }
public void clearSelection(List modified) { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.clearSelection(modified); } super.clearSelection(modified); }
public void selectAll() { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { BlockBox box = (BlockBox)i.next(); box.selectAll(); } super.selectAll(); }
public void calcChildLocations() { super.calcChildLocations(); // Update absolute boxes too. Not necessary most of the time, but // it doesn't hurt (revisit this) for (int i = 0; i < getNonFlowContent().size(); i++) { Box content = (Box)getNonFlowContent().get(i); if (content.getStyle().isAbsolute()) { content.calcCanvasLocation(); content.calcChildLocations(); } } }
public void calcChildLocations() { super.calcChildLocations(); // Update absolute boxes too. Not necessary most of the time, but // it doesn't hurt (revisit this) for (int i = 0; i < getNonFlowContent().size(); i++) { Box content = (Box)getNonFlowContent().get(i); if (content.getStyle().isAbsolute()) { content.calcCanvasLocation(); content.calcChildLocations(); } } }
public void collectText(RenderingContext c, StringBuffer buffer) throws IOException { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.collectText(c, buffer); } if (isContainsDynamicFunction()) { lookForDynamicFunctions(c); } super.collectText(c, buffer); }
public void collectText(RenderingContext c, StringBuffer buffer) throws IOException { for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.collectText(c, buffer); } if (isContainsDynamicFunction()) { lookForDynamicFunctions(c); } super.collectText(c, buffer); }
public void exportText(RenderingContext c, Writer writer) throws IOException { int baselinePos = getAbsY() + getBaseline(); if (baselinePos >= c.getPage().getBottom() && isInDocumentFlow()) { exportPageBoxText(c, writer, baselinePos); } for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.exportText(c, writer); } if (isContainsContent()) { StringBuffer result = new StringBuffer(); collectText(c, result); writer.write(result.toString().trim()); writer.write(LINE_SEPARATOR); } }
public void exportText(RenderingContext c, Writer writer) throws IOException { int baselinePos = getAbsY() + getBaseline(); if (baselinePos >= c.getPage().getBottom() && isInDocumentFlow()) { exportPageBoxText(c, writer, baselinePos); } for (Iterator i = getNonFlowContent().iterator(); i.hasNext(); ) { Box b = (Box)i.next(); b.exportText(c, writer); } if (isContainsContent()) { StringBuffer result = new StringBuffer(); collectText(c, result); writer.write(result.toString().trim()); writer.write(LINE_SEPARATOR); } }
for (Styleable child : (List<Styleable>) ((LineBox) styleable).getNonFlowContent()) { addClickableElements(child, boxes, visited);