1 package com.etymon.pj.object.pagemark; 2 3 import java.io.*; 4 import java.util.*; 5 import com.etymon.pj.object.*; 6 7 11 public class Xw 12 extends PageMarkOperator { 13 14 public Xw(PjNumber lineWidth) { 15 _lineWidth = lineWidth; 16 } 17 18 public PjNumber getLineWidth() { 19 return _lineWidth; 20 } 21 22 public long writePdf(OutputStream os) throws IOException { 23 long z = _lineWidth.writePdf(os); 24 z = z + writeln(os, " w"); 25 return z; 26 } 27 28 32 public Object clone() { 33 return this; 34 } 35 36 public boolean equals(Object obj) { 37 if (obj == null) { 38 return false; 39 } 40 if (obj instanceof Xw) { 41 return (_lineWidth.equals(((Xw)obj)._lineWidth)); 42 } else { 43 return false; 44 } 45 } 46 47 private PjNumber _lineWidth; 48 49 } 50 | Popular Tags |