Exemple #1
0
 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);
   }
 }
Exemple #2
0
 public void invalidate() {
   invalidateChildren();
   invalidateRecursive();
   updateVisibility();
 }