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: d0.
09: @author Nassib Nassar
10: */
11: public class Xd0 extends PageMarkOperator {
12:
13: public Xd0(PjNumber wX, PjNumber wY) {
14: _wX = wX;
15: _wY = wY;
16: }
17:
18: public PjNumber getWX() {
19: return _wX;
20: }
21:
22: public PjNumber getWY() {
23: return _wY;
24: }
25:
26: public long writePdf(OutputStream os) throws IOException {
27: long z = _wX.writePdf(os);
28: z = z + write(os, ' ');
29: z = z + _wY.writePdf(os);
30: z = z + writeln(os, " d0");
31: return z;
32: }
33:
34: /**
35: Returns a deep copy of this object.
36: @return a deep copy of this object.
37: */
38: public Object clone() {
39: return this ;
40: }
41:
42: public boolean equals(Object obj) {
43: if (obj == null) {
44: return false;
45: }
46: if (obj instanceof Xd0) {
47: return ((_wX.equals(((Xd0) obj)._wX)) && (_wY
48: .equals(((Xd0) obj)._wY)));
49: } else {
50: return false;
51: }
52: }
53:
54: private PjNumber _wX;
55: private PjNumber _wY;
56:
57: }
|