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