diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-14 00:56:37 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-14 01:04:27 +0200 |
commit | de4a540efee75970a7ff7949ada2304c786b1da8 (patch) | |
tree | 0d9375e02015f20f7290a4423dd9731bfff3ebd2 /platform/java | |
parent | b8aeced92d5a3576e9bc5fbd87656dc97e380c52 (diff) | |
download | mupdf-de4a540efee75970a7ff7949ada2304c786b1da8.tar.xz |
Fix whitespace and indentation.
Diffstat (limited to 'platform/java')
-rw-r--r-- | platform/java/example/PageCanvas.java | 4 | ||||
-rw-r--r-- | platform/java/example/TraceDevice.java | 2 | ||||
-rw-r--r-- | platform/java/example/Viewer.java | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/platform/java/example/PageCanvas.java b/platform/java/example/PageCanvas.java index bfeca21b..29f98a18 100644 --- a/platform/java/example/PageCanvas.java +++ b/platform/java/example/PageCanvas.java @@ -73,8 +73,8 @@ public class PageCanvas extends java.awt.Canvas } public void zoomOut() { - mScale -= 0.25f; - run(); + mScale -= 0.25f; + run(); } public void paint(Graphics g) diff --git a/platform/java/example/TraceDevice.java b/platform/java/example/TraceDevice.java index 49c97532..01e7b6c8 100644 --- a/platform/java/example/TraceDevice.java +++ b/platform/java/example/TraceDevice.java @@ -34,7 +34,7 @@ public class TraceDevice extends Device implements PathWalker, TextWalker } public void showGlyph(Font font, Matrix trm, int glyph, int unicode, boolean wmode) { - System.out.println("glyph '" + (char)unicode + "' " + glyph + "\t" + font + " " + trm); + System.out.println("glyph '" + (char)unicode + "' " + glyph + "\t" + font + " " + trm); } public void tracePath(Path path) { diff --git a/platform/java/example/Viewer.java b/platform/java/example/Viewer.java index 310aeb15..c158c42d 100644 --- a/platform/java/example/Viewer.java +++ b/platform/java/example/Viewer.java @@ -39,7 +39,7 @@ public class Viewer extends Frame implements WindowListener, ActionListener super("MuPDF"); retinaScale = getRetinaScale(); - + this.doc = doc_; pageCount = doc.countPages(); @@ -228,7 +228,7 @@ public class Viewer extends Frame implements WindowListener, ActionListener public float getRetinaScale() { - // first try Oracle's VM (we should also test for 1.7.0_40 or higher) + // first try Oracle's VM (we should also test for 1.7.0_40 or higher) final String vendor = System.getProperty("java.vm.vendor"); boolean isOracle = vendor != null && vendor.toLowerCase().contains("Oracle".toLowerCase()); if (isOracle) @@ -250,7 +250,7 @@ public class Viewer extends Frame implements WindowListener, ActionListener return 1.0f; } - // try Apple VM + // try Apple VM final Float scaleFactor = (Float)Toolkit.getDefaultToolkit().getDesktopProperty("apple.awt.contentScaleFactor"); if (scaleFactor != null && scaleFactor.intValue() == 2) { return 2.0f; |