@@ -49,10 +49,7 @@ private class Holder {
4949
5050 @ Override
5151 public String toString () {
52- return "Holder{" +
53- "row=" + row +
54- ", col=" + col +
55- '}' ;
52+ return "Holder{" + "row=" + row + ", col=" + col + '}' ;
5653 }
5754 }
5855
@@ -71,12 +68,8 @@ private class RenderRange {
7168
7269 @ Override
7370 public String toString () {
74- return "RenderRange{" +
75- "page=" + page +
76- ", gridSize=" + gridSize +
77- ", leftTop=" + leftTop +
78- ", rightBottom=" + rightBottom +
79- '}' ;
71+ return "RenderRange{" + "page=" + page + ", gridSize=" + gridSize + ", leftTop=" + leftTop +
72+ ", rightBottom=" + rightBottom + '}' ;
8073 }
8174 }
8275
@@ -86,10 +79,7 @@ private class GridSize {
8679
8780 @ Override
8881 public String toString () {
89- return "GridSize{" +
90- "rows=" + rows +
91- ", cols=" + cols +
92- '}' ;
82+ return "GridSize{" + "rows=" + rows + ", cols=" + cols + '}' ;
9383 }
9484 }
9585
@@ -270,8 +260,7 @@ private void loadVisible() {
270260
271261 }
272262
273- private int loadPage (int page , int firstRow , int lastRow , int firstCol , int lastCol ,
274- int nbOfPartsLoadable ) {
263+ private int loadPage (int page , int firstRow , int lastRow , int firstCol , int lastCol , int nbOfPartsLoadable ) {
275264 int loaded = 0 ;
276265 for (int row = firstRow ; row <= lastRow ; row ++) {
277266 for (int col = firstCol ; col <= lastCol ; col ++) {
@@ -307,14 +296,15 @@ private boolean loadCell(int page, int row, int col, float pageRelativePartWidth
307296
308297 if (renderWidth > 0 && renderHeight > 0 ) {
309298 if (!pdfView .cacheManager .upPartIfContained (page , pageRelativeBounds , cacheOrder )) {
310- pdfView .renderingHandler .addRenderingTask (page ,
311- renderWidth ,
312- renderHeight ,
313- pageRelativeBounds ,
314- false ,
315- cacheOrder ,
316- pdfView .isBestQuality (),
317- pdfView .isAnnotationRendering ()
299+ pdfView .renderingHandler .addRenderingTask (
300+ page ,
301+ renderWidth ,
302+ renderHeight ,
303+ pageRelativeBounds ,
304+ false ,
305+ cacheOrder ,
306+ pdfView .isBestQuality (),
307+ pdfView .isAnnotationRendering ()
318308 );
319309 }
320310
@@ -329,9 +319,15 @@ private void loadThumbnail(int page) {
329319 float thumbnailWidth = pageSize .getWidth () * Constants .THUMBNAIL_RATIO ;
330320 float thumbnailHeight = pageSize .getHeight () * Constants .THUMBNAIL_RATIO ;
331321 if (!pdfView .cacheManager .containsThumbnail (page , thumbnailRect )) {
332- pdfView .renderingHandler .addRenderingTask (page ,
333- thumbnailWidth , thumbnailHeight , thumbnailRect ,
334- true , 0 , pdfView .isBestQuality (), pdfView .isAnnotationRendering ()
322+ pdfView .renderingHandler .addRenderingTask (
323+ page ,
324+ thumbnailWidth ,
325+ thumbnailHeight ,
326+ thumbnailRect ,
327+ true ,
328+ 0 ,
329+ pdfView .isBestQuality (),
330+ pdfView .isAnnotationRendering ()
335331 );
336332 }
337333 }
0 commit comments