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: Graphics operator: TJ.
09: @author Nassib Nassar
10: */
11: public class XXTJ extends PageMarkOperator {
12:
13: public XXTJ(PjArray array) {
14: _array = array;
15: }
16:
17: public PjArray getArray() {
18: return _array;
19: }
20:
21: public long writePdf(OutputStream os) throws IOException {
22: long z = _array.writePdf(os);
23: z = z + writeln(os, " TJ");
24: return z;
25: }
26:
27: /**
28: Returns a deep copy of this object.
29: @return a deep copy of this object.
30: @exception CloneNotSupportedException if the instance can not be cloned.
31: */
32: public Object clone() throws CloneNotSupportedException {
33: return new XXTJ((PjArray) (_array.clone()));
34: }
35:
36: public boolean equals(Object obj) {
37: if (obj == null) {
38: return false;
39: }
40: if (obj instanceof XXTJ) {
41: return (_array.equals(((XXTJ) obj)._array));
42: } else {
43: return false;
44: }
45: }
46:
47: private PjArray _array;
48:
49: }
|