1 19 20 package jxl.write.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.IntegerHelper; 24 import jxl.biff.StringHelper; 25 import jxl.biff.WritableRecordData; 26 27 30 class DefaultRowHeightRecord extends WritableRecordData 31 { 32 35 private byte[] data; 36 39 private int rowHeight; 40 41 44 private boolean changed; 45 46 53 public DefaultRowHeightRecord(int h, boolean ch) 54 { 55 super(Type.DEFAULTROWHEIGHT); 56 data = new byte[4]; 57 rowHeight = h; 58 changed = ch; 59 } 60 61 66 public byte[] getData() 67 { 68 if (changed) 69 { 70 data[0] |= 0x1; 71 } 72 73 IntegerHelper.getTwoBytes(rowHeight, data, 2); 74 return data; 75 } 76 } 77 78 79 | Popular Tags |