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: Text operator: ".
09: @author Nassib Nassar
10: */
11: public class Xquot extends PageMarkOperator {
12:
13: public Xquot(PjNumber aw, PjNumber ac, PjString text) {
14: _aw = aw;
15: _ac = ac;
16: _text = text;
17: }
18:
19: public PjNumber getAW() {
20: return _aw;
21: }
22:
23: public PjNumber getAC() {
24: return _ac;
25: }
26:
27: public PjString getText() {
28: return _text;
29: }
30:
31: public long writePdf(OutputStream os) throws IOException {
32: long z = _aw.writePdf(os);
33: z = z + write(os, ' ');
34: z = z + _ac.writePdf(os);
35: z = z + write(os, ' ');
36: z = z + _text.writePdf(os);
37: z = z + writeln(os, " \"");
38: return z;
39: }
40:
41: /**
42: Returns a deep copy of this object.
43: @return a deep copy of this object.
44: */
45: public Object clone() {
46: return this ;
47: }
48:
49: public boolean equals(Object obj) {
50: if (obj == null) {
51: return false;
52: }
53: if (obj instanceof Xquot) {
54: return ((_aw.equals(((Xquot) obj)._aw))
55: && (_ac.equals(((Xquot) obj)._ac)) && (_text
56: .equals(((Xquot) obj)._text)));
57: } else {
58: return false;
59: }
60: }
61:
62: private PjNumber _aw;
63: private PjNumber _ac;
64: private PjString _text;
65:
66: }
|