1 19 20 package jxl.write.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.DoubleHelper; 24 import jxl.biff.WritableRecordData; 25 26 29 abstract class MarginRecord extends WritableRecordData 30 { 31 34 private double margin; 35 36 39 public MarginRecord(Type t, double v) 40 { 41 super(t); 42 margin = v; 43 } 44 49 public byte[] getData() 50 { 51 byte[] data = new byte[8]; 52 53 DoubleHelper.getIEEEBytes(margin, data, 0); 54 55 return data; 56 } 57 } 58 59 60 | Popular Tags |