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

Method showHelp

platform/java/example/Viewer.java:816–935  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

814 }
815
816 protected void showHelp() {
817 final Dialog box = new Dialog(this, "Help", true);
818 box.addWindowListener(new WindowListener() {
819 public void windowActivated(WindowEvent event) { }
820 public void windowDeactivated(WindowEvent event) { }
821 public void windowIconified(WindowEvent event) { }
822 public void windowDeiconified(WindowEvent event) { }
823 public void windowOpened(WindowEvent event) { }
824 public void windowClosed(WindowEvent event) { }
825 public void windowClosing(WindowEvent event) {
826 box.setVisible(false);
827 pageCanvas.requestFocusInWindow();
828 }
829 });
830
831 String help[] = {
832 "The middle mouse button (scroll wheel button) pans the document view.",
833 //"The right mouse button selects a region and copies the marked text to the clipboard.",
834 //"",
835 //"",
836 "F1 - show this message",
837 "i - show document information",
838 "o - show document outline",
839 //"a - show annotation editor",
840 "L - highlight links",
841 //"F - highlight form fields",
842 "r - reload file",
843 "S - save file",
844 "q - quit",
845 "",
846 "< - decrease E-book font size",
847 "> - increase E-book font size",
848 "A - toggle anti-aliasing",
849 "I - toggle inverted color mode",
850 "C - toggle tinted color mode",
851 "E - toggle ICC color management",
852 //"e - toggle spot color emulation",
853 "",
854 "f - fullscreen window",
855 "w - shrink wrap window",
856 "W - fit to width",
857 "H - fit to height",
858 "Z - fit to page",
859 "z - reset zoom",
860 "[number] z - set zoom resolution in DPI",
861 "plus - zoom in",
862 "minus - zoom out",
863 "[ - rotate counter-clockwise",
864 "] - rotate clockwise",
865 "arrow keys - scroll in small increments",
866 "h, j, k, l - scroll in small increments",
867 "",
868 "b - smart move backward",
869 "space - smart move forward",
870 "comma or page up - go backward",
871 "period or page down - go forward",
872 "g - go to first page",
873 "G - go to last page",

Callers 1

keyReleasedMethod · 0.95

Calls 3

packMethod · 0.80
disposeMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected