1 19 20 package jxl.read.biff; 21 22 import jxl.biff.Type; 23 import jxl.biff.IntegerHelper; 24 import jxl.biff.RecordData; 25 26 29 public class ColumnInfoRecord extends RecordData 30 { 31 34 private byte[] data; 35 36 39 private int startColumn; 40 41 44 private int endColumn; 45 46 49 private int xfIndex; 50 51 54 private int width; 55 56 59 private boolean hidden; 60 61 66 ColumnInfoRecord(Record t) 67 { 68 super(Type.COLINFO); 69 70 data = t.getData(); 71 72 startColumn = IntegerHelper.getInt(data[0], data[1]); 73 endColumn = IntegerHelper.getInt(data[2], data[3]); 74 width = IntegerHelper.getInt(data[4], data[5]); 75 xfIndex = IntegerHelper.getInt(data[6], data[7]); 76 77 int options = IntegerHelper.getInt(data[8], data[9]); 78 hidden = ((options & 0x1) != 0); 79 } 80 81 86 public int getStartColumn() 87 { 88 return startColumn; 89 } 90 91 96 public int getEndColumn() 97 { 98 return endColumn; 99 } 100 101 106 public int getXFIndex() 107 { 108 return xfIndex; 109 } 110 111 116 public int getWidth() 117 { 118 return width; 119 } 120 121 126 public boolean getHidden() 127 { 128 return hidden; 129 } 130 } 131 132 133 | Popular Tags |