public Box getDocumentParent() { return getParent(); }
public Box getDocumentParent() { return getParent(); }
public boolean isContainedInMarginBox() { Box current = this; while (true) { Box parent = current.getParent(); if (parent == null) { break; } else { current = parent; } } return current.isMarginAreaRoot(); }
public boolean isContainedInMarginBox() { Box current = this; while (true) { Box parent = current.getParent(); if (parent == null) { break; } else { current = parent; } } return current.isMarginAreaRoot(); }
protected TableSectionBox getSection() { if (_section == null) { _section = (TableSectionBox)getParent().getParent(); } return _section; }
public LineBox getLineBox() { Box b = getParent(); while (! (b instanceof LineBox)) { b = b.getParent(); } return (LineBox)b; }
public LineBox getLineBox() { Box b = getParent(); while (! (b instanceof LineBox)) { b = b.getParent(); } return (LineBox)b; }
public boolean isInDocumentFlow() { Box flowRoot = this; while (true) { Box parent = flowRoot.getParent(); if (parent == null) { break; } else { flowRoot = parent; } } return flowRoot.isRoot(); }
public Box getPreviousSibling() { Box parent = getParent(); return parent == null ? null : parent.getPrevious(this); }
private TableBox getTable() { // row -> section -> table return (TableBox)getParent().getParent(); }
protected TableSectionBox getSection() { if (_section == null) { _section = (TableSectionBox)getParent().getParent(); } return _section; }
private Box getElementContainerBox(InlineText t) { Box b = t.getParent(); while (b.getElement() == null) { b = b.getParent(); } return b; }
public LineBox getLineBox() { if (! isInline()) { return null; } else { Box b = getParent(); while (! (b instanceof LineBox)) { b = b.getParent(); } return (LineBox) b; } }
private boolean isNeedAnalyzePageBreaks() { Box b = getParent(); while (b != null) { if (b.getStyle().isTable() && b.getStyle().isPaginateTable()) { return false; } b = b.getParent(); } return true; }
private boolean isNeedAnalyzePageBreaks() { Box b = getParent(); while (b != null) { if (b.getStyle().isTable() && b.getStyle().isPaginateTable()) { return false; } b = b.getParent(); } return true; }
private boolean isPaintsRootElementBackground() { return (isRoot() && getStyle().isHasBackground()) || (isBody() && ! getParent().getStyle().isHasBackground()); }