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: Type 3 font operator: d1.
09: @author Nassib Nassar
10: */
11: public class Xd1 extends PageMarkOperator {
12:
13: public Xd1(PjNumber wx, PjNumber wy, PjNumber llx, PjNumber lly,
14: PjNumber urx, PjNumber ury) {
15: _wx = wx;
16: _wy = wy;
17: _llx = llx;
18: _lly = lly;
19: _urx = urx;
20: _ury = ury;
21: }
22:
23: public PjNumber getWX() {
24: return _wx;
25: }
26:
27: public PjNumber getWY() {
28: return _wy;
29: }
30:
31: public PjNumber getLLX() {
32: return _llx;
33: }
34:
35: public PjNumber getLLY() {
36: return _lly;
37: }
38:
39: public PjNumber getURX() {
40: return _urx;
41: }
42:
43: public PjNumber getURY() {
44: return _ury;
45: }
46:
47: public long writePdf(OutputStream os) throws IOException {
48: long z = _wx.writePdf(os);
49: z = z + write(os, ' ');
50: z = z + _wy.writePdf(os);
51: z = z + write(os, ' ');
52: z = z + _llx.writePdf(os);
53: z = z + write(os, ' ');
54: z = z + _lly.writePdf(os);
55: z = z + write(os, ' ');
56: z = z + _urx.writePdf(os);
57: z = z + write(os, ' ');
58: z = z + _ury.writePdf(os);
59: z = z + writeln(os, " d1");
60: return z;
61: }
62:
63: /**
64: Returns a deep copy of this object.
65: @return a deep copy of this object.
66: */
67: public Object clone() {
68: return this ;
69: }
70:
71: public boolean equals(Object obj) {
72: if (obj == null) {
73: return false;
74: }
75: if (obj instanceof Xd1) {
76: return ((_wx.equals(((Xd1) obj)._wx))
77: && (_wy.equals(((Xd1) obj)._wy))
78: && (_llx.equals(((Xd1) obj)._llx))
79: && (_lly.equals(((Xd1) obj)._lly))
80: && (_urx.equals(((Xd1) obj)._urx)) && (_ury
81: .equals(((Xd1) obj)._ury)));
82: } else {
83: return false;
84: }
85: }
86:
87: private PjNumber _wx;
88: private PjNumber _wy;
89: private PjNumber _llx;
90: private PjNumber _lly;
91: private PjNumber _urx;
92: private PjNumber _ury;
93:
94: }
|