UserAgentCallback userAgentCallback, int cssWidth, int cssHeight) { Element element = blockBox.getElement(); if (element == null) { return null;
private static int getReferenceBaseline(RenderingContext c, BlockBox box) { MarkerData markerData = box.getMarkerData(); StrutMetrics strutMetrics = box.getMarkerData().getStructMetrics(); if (markerData.getReferenceLine() != null) { return markerData.getReferenceLine().getAbsY() + strutMetrics.getBaseline(); } else { return box.getAbsY() + box.getTy() + strutMetrics.getBaseline(); } }
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 int getPageRefY(Box box) { if (box instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox) box; return iB.getAbsY() + iB.getBaseline(); } else { return box.getAbsY(); } }
public void updateBottom(LayoutContext c, int absY) { PageBox page = getPage(c, absY); getContentLimit(page.getPageNo(), true).updateBottom(absY); ContentLimitContainer parent = getParent(); if (parent != null) { parent.updateBottom(c, absY); } }
private void moveAllTheWayOver(BlockBox current, int direction) { if (direction == LEFT) { current.setX(0); } else if (direction == RIGHT) { current.setX(current.getContainingBlock().getContentWidth() - current.getWidth()); } }
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 int getLayoutWidth() { if (_textMarker != null) { return _textMarker.getLayoutWidth(); } else if (_glyphMarker != null) { return _glyphMarker.getLayoutWidth(); } else if (_imageMarker != null) { return _imageMarker.getLayoutWidth(); } else { return 0; } }
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 void lookForDynamicFunctions(RenderingContext c) { if (getChildCount() > 0) { for (int i = 0; i < getChildCount(); i++) { Box b = (Box)getChild(i); if (b instanceof InlineLayoutBox) { ((InlineLayoutBox)b).lookForDynamicFunctions(c); } } } }
private static int getReferenceBaseline(RenderingContext c, BlockBox box) { MarkerData markerData = box.getMarkerData(); StrutMetrics strutMetrics = box.getMarkerData().getStructMetrics(); if (markerData.getReferenceLine() != null) { return markerData.getReferenceLine().getAbsY() + strutMetrics.getBaseline(); } else { return box.getAbsY() + box.getTy() + strutMetrics.getBaseline(); } }
public void updateBottom(LayoutContext c, int absY) { PageBox page = getPage(c, absY); getContentLimit(page.getPageNo(), true).updateBottom(absY); ContentLimitContainer parent = getParent(); if (parent != null) { parent.updateBottom(c, absY); } }
Element element = blockBox.getElement(); if (element == null) { return null;
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 int getLayoutWidth() { if (_textMarker != null) { return _textMarker.getLayoutWidth(); } else if (_glyphMarker != null) { return _glyphMarker.getLayoutWidth(); } else if (_imageMarker != null) { return _imageMarker.getLayoutWidth(); } else { return 0; } }