private void stopDecodingThisNode() { if (!isDecodingNow()) { return; } documentView.decodeService.stopDecoding(this); setDecodingNow(false); }
private void decodePageTreeNode() { if (isDecodingNow()) { return; } setDecodingNow(true); documentView.decodeService.decodePage( this, page.index, new DecodeService.DecodeCallback() { public void decodeComplete(final Bitmap bitmap) { documentView.post( new Runnable() { public void run() { setBitmap(bitmap); invalidateFlag = false; setDecodingNow(false); page.setAspectRatio( documentView.decodeService.getPageWidth(page.index), documentView.decodeService.getPageHeight(page.index)); invalidateChildren(); } }); } }, documentView.zoomModel.getZoom(), pageSliceBounds); }