public void updateVisibility() { invalidateChildren(); if (treeNodes != null) { for (PageTreeNode child : treeNodes) { child.updateVisibility(); } } if (isVisible()) { if (!thresholdHit()) { if (getBitmap() != null && !invalidateFlag) { restoreBitmapReference(); } else { decodePageTreeNode(); } } } if (!isVisibleAndNotHiddenByChildren()) { stopDecodingThisNode(); setBitmap(null); } }
public void invalidate() { invalidateChildren(); invalidateRecursive(); updateVisibility(); }