| 40 | import java.util.Vector; |
| 41 | |
| 42 | public class Viewer extends Frame implements WindowListener, ActionListener, ItemListener, KeyListener, MouseWheelListener, Context.Log, ViewerCore.Callback |
| 43 | { |
| 44 | protected Worker worker; |
| 45 | protected ViewerCore doc; |
| 46 | protected Location location; |
| 47 | protected int chapterNumber; |
| 48 | protected int pageNumber; |
| 49 | protected ViewerCore.OutlineItem[] outline; |
| 50 | |
| 51 | protected int layoutWidth = 450; |
| 52 | protected int layoutHeight = 600; |
| 53 | protected int layoutEm = 12; |
| 54 | |
| 55 | protected String title; |
| 56 | protected String author; |
| 57 | protected String format; |
| 58 | protected String encryption; |
| 59 | protected boolean print; |
| 60 | protected boolean copy; |
| 61 | protected boolean edit; |
| 62 | protected boolean annotate; |
| 63 | protected boolean form; |
| 64 | protected boolean accessibility; |
| 65 | protected boolean assemble; |
| 66 | protected boolean printHq; |
| 67 | protected boolean reflowable; |
| 68 | protected boolean linearized; |
| 69 | protected int updates; |
| 70 | protected int firstUpdate; |
| 71 | protected int chapters; |
| 72 | protected int pages; |
| 73 | |
| 74 | protected Pixmap pixmap; |
| 75 | protected Rect bbox; |
| 76 | protected Rect[] links; |
| 77 | protected String[] linkURIs; |
| 78 | protected Quad[][] hits; |
| 79 | |
| 80 | protected int pixmapWidth; |
| 81 | protected int pixmapHeight; |
| 82 | protected float pixelScale; |
| 83 | protected int screenDPI; |
| 84 | protected Dimension screenSize; |
| 85 | |
| 86 | protected int searchDirection = 1; |
| 87 | protected String searchNeedle = null; |
| 88 | |
| 89 | protected final int MIN_ZOOM_DPI = 18; |
| 90 | protected final int MAX_ZOOM_DPI = 288; |
| 91 | protected int[] zoomList = { |
| 92 | 18, 24, 36, 54, 72, 96, 120, 144, 180, 216, 288 |
| 93 | }; |
| 94 | protected boolean customZoom = false; |
| 95 | protected int currentDPI = 72; |
| 96 | |
| 97 | protected int rotate = 0; |
| 98 | protected boolean icc = true; |
| 99 | protected int antialias = 8; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…