KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > etymon > pj > object > PjPagesNode


1 package com.etymon.pj.object;
2
3 import java.io.*;
4 import java.util.*;
5 import com.etymon.pj.*;
6 import com.etymon.pj.exception.*;
7
8 /**
9    A representation of a dictionary node in a PDF Pages tree (abstract base class).
10    @author Nassib Nassar
11 */

12 public abstract class PjPagesNode
13     extends PjDictionary {
14
15     /**
16        Creates a new Pages dictionary node.
17     */

18     public PjPagesNode() {
19         super();
20     }
21
22     /**
23        Creates a Pages dictionary node as a wrapper around a Hashtable.
24        @param h the Hashtable to use for this dictionary node.
25     */

26     public PjPagesNode(Hashtable h) {
27         super(h);
28     }
29
30     public void setParent(PjReference parent) {
31         _h.put(PjName.PARENT, parent);
32     }
33
34     public PjReference getParent() throws InvalidPdfObjectException {
35         return hgetReference(PjName.PARENT);
36     }
37
38     public void setMediaBox(PjRectangle mediaBox) {
39         _h.put(PjName.MEDIABOX, mediaBox);
40     }
41
42     public void setMediaBox(PjReference mediaBox) {
43         _h.put(PjName.MEDIABOX, mediaBox);
44     }
45
46     public PjObject getMediaBox() throws InvalidPdfObjectException {
47         return hget(PjName.MEDIABOX);
48     }
49
50     public void setResources(PjResources resources) {
51         _h.put(PjName.RESOURCES, resources);
52     }
53
54     public void setResources(PjReference resources) {
55         _h.put(PjName.RESOURCES, resources);
56     }
57
58     public PjObject getResources() throws InvalidPdfObjectException {
59         return hget(PjName.RESOURCES);
60     }
61
62     public void setCropBox(PjRectangle cropBox) {
63         _h.put(PjName.CROPBOX, cropBox);
64     }
65
66     public void setCropBox(PjReference cropBox) {
67         _h.put(PjName.CROPBOX, cropBox);
68     }
69
70     public PjObject getCropBox() throws InvalidPdfObjectException {
71         return hget(PjName.CROPBOX);
72     }
73
74     public void setRotate(PjNumber rotate) {
75         _h.put(PjName.ROTATE, rotate);
76     }
77
78     public void setRotate(PjReference rotate) {
79         _h.put(PjName.ROTATE, rotate);
80     }
81
82     public PjObject getRotate() throws InvalidPdfObjectException {
83         return hget(PjName.ROTATE);
84     }
85
86     public void setDur(PjNumber dur) {
87         _h.put(PjName.DUR, dur);
88     }
89
90     public void setDur(PjReference dur) {
91         _h.put(PjName.DUR, dur);
92     }
93
94     public PjObject getDur() throws InvalidPdfObjectException {
95         return hget(PjName.DUR);
96     }
97
98     public void setHid(PjBoolean hid) {
99         _h.put(PjName.HID, hid);
100     }
101
102     public void setHid(PjReference hid) {
103         _h.put(PjName.HID, hid);
104     }
105
106     public PjObject getHid() throws InvalidPdfObjectException {
107         return hget(PjName.HID);
108     }
109
110     public void setTrans(PjDictionary trans) {
111         _h.put(PjName.TRANS, trans);
112     }
113
114     public void setTrans(PjReference trans) {
115         _h.put(PjName.TRANS, trans);
116     }
117
118     public PjObject getTrans() throws InvalidPdfObjectException {
119         return hget(PjName.TRANS);
120     }
121
122     public void setAA(PjDictionary aA) {
123         _h.put(PjName.AA, aA);
124     }
125
126     public void setAA(PjReference aA) {
127         _h.put(PjName.AA, aA);
128     }
129
130     public PjObject getAA() throws InvalidPdfObjectException {
131         return hget(PjName.AA);
132     }
133
134 }
135
Popular Tags