01: package com.etymon.pj.object.pagemark;
02:
03: import java.io.*;
04: import java.util.*;
05: import com.etymon.pj.object.*;
06:
07: /**
08: XObject operator: Do.
09: @author Nassib Nassar
10: */
11: public class XDo extends PageMarkOperator {
12:
13: public XDo(PjName xobject) {
14: _xobject = xobject;
15: }
16:
17: public PjName getXObject() {
18: return _xobject;
19: }
20:
21: public long writePdf(OutputStream os) throws IOException {
22: long z = _xobject.writePdf(os);
23: z = z + writeln(os, " Do");
24: return z;
25: }
26:
27: /**
28: Returns a deep copy of this object.
29: @return a deep copy of this object.
30: */
31: public Object clone() {
32: return this ;
33: }
34:
35: public boolean equals(Object obj) {
36: if (obj == null) {
37: return false;
38: }
39: if (obj instanceof XDo) {
40: return (_xobject.equals(((XDo) obj)._xobject));
41: } else {
42: return false;
43: }
44: }
45:
46: private PjName _xobject;
47:
48: }
|