MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / gotoFirstPage

Method gotoFirstPage

platform/java/example/ViewerCore.java:363–377  ·  view source on GitHub ↗
(final OnException onException)

Source from the content-addressed store, hash-verified

361 }
362
363 public void gotoFirstPage(final OnException onException) {
364 worker.add(new Worker.Task() {
365 Location location;
366 public void work() {
367 location = doc.locationFromPageNumber(0);
368 }
369 public void run() {
370 gotoLocation(location, onException);
371 }
372 public void exception(Throwable t) {
373 if (onException != null)
374 onException.run(t);
375 }
376 });
377 }
378
379 public void gotoLastPage(final OnException onException) {
380 worker.add(new Worker.Task() {

Callers 2

runMethod · 0.95
actionPerformedMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected