Exemplo n.º 1
0
 private void recycle() {
   stopDecodingThisNode();
   setBitmap(null);
   if (treeNodes != null) {
     for (PageTreeNode child : treeNodes) {
       child.recycle();
     }
   }
 }
Exemplo n.º 2
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);
   }
 }
Exemplo n.º 3
0
 private void restoreBitmapReference() {
   setBitmap(getBitmap());
 }