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: Marked content operator: BDC.
09: @author Nassib Nassar
10: */
11: public class XBDC extends PageMarkOperator {
12:
13: public XBDC(PjName tag, PjDictionary properties) {
14: _tag = tag;
15: _properties = properties;
16: }
17:
18: public XBDC(PjName tag, PjName properties) {
19: _tag = tag;
20: _properties = properties;
21: }
22:
23: public PjName getTag() {
24: return _tag;
25: }
26:
27: public PjObject getProperties() {
28: return _properties;
29: }
30:
31: public long writePdf(OutputStream os) throws IOException {
32: long z = _tag.writePdf(os);
33: z = z + write(os, ' ');
34: z = z + _properties.writePdf(os);
35: z = z + writeln(os, " BDC");
36: return z;
37: }
38:
39: /**
40: Returns a deep copy of this object.
41: @return a deep copy of this object.
42: */
43: public Object clone() {
44: return this ;
45: }
46:
47: public boolean equals(Object obj) {
48: if (obj == null) {
49: return false;
50: }
51: if (obj instanceof XBDC) {
52: return ((_tag.equals(((XBDC) obj)._tag)) && (_properties
53: .equals(((XBDC) obj)._properties)));
54: } else {
55: return false;
56: }
57: }
58:
59: private PjName _tag;
60: private PjObject _properties;
61:
62: }
|