Debian Codegraph @

freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFViewerPreferences.java

raw
1 package org.freehep.graphicsio.pdf;
2
3 import java.io.IOException;
4
5 /**
6 * Implements the Viewer Preferences (see Table 7.1).
7 * <p>
8 *
9 * @author Mark Donszelmann
10 * @version $Id: freehep-graphicsio-pdf/src/main/java/org/freehep/graphicsio/pdf/PDFViewerPreferences.java f493ff6e61b2 2005/12/01 18:46:43 duns $
11 */
12 public class PDFViewerPreferences extends PDFDictionary {
13
14 PDFViewerPreferences(PDF pdf, PDFByteWriter writer, PDFObject object)
15 throws IOException {
16 super(pdf, writer, object);
17 }
18
19 public void setHideToolbar(boolean hide) throws IOException {
20 entry("HideToolbar", hide);
21 }
22
23 public void setHideMenubar(boolean hide) throws IOException {
24 entry("HideMenubar", hide);
25 }
26
27 public void setHideWindowUI(boolean hide) throws IOException {
28 entry("HideWindowUI", hide);
29 }
30
31 public void setFitWindow(boolean fit) throws IOException {
32 entry("FitWindow", fit);
33 }
34
35 public void setCenterWindow(boolean center) throws IOException {
36 entry("CenterWindow", center);
37 }
38
39 public void setNonFullScreenPageMode(String mode) throws IOException {
40 entry("NonFullScreenPageMode", pdf.name(mode));
41 }
42
43 public void setDirection(String direction) throws IOException {
44 entry("Direction", pdf.name(direction));
45 }
46 }