private void invalidateRecursive() { invalidateFlag = true; if (treeNodes != null) { for (PageTreeNode child : treeNodes) { child.invalidateRecursive(); } } stopDecodingThisNode(); }
private void recycle() { stopDecodingThisNode(); setBitmap(null); if (treeNodes != null) { for (PageTreeNode child : treeNodes) { child.recycle(); } } }
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); } }