1 19 20 package jxl.read.biff; 21 22 import common.Logger; 23 24 import jxl.biff.IntegerHelper; 25 import jxl.biff.RecordData; 26 27 30 class Window2Record extends RecordData 31 { 32 35 private static Logger logger = Logger.getLogger(Window2Record.class); 36 37 40 private boolean selected; 41 44 private boolean showGridLines; 45 48 private boolean displayZeroValues; 49 52 private boolean frozenPanes; 53 56 private boolean frozenNotSplit; 57 58 63 public Window2Record(Record t) 64 { 65 super(t); 66 byte[] data = t.getData(); 67 68 int options = IntegerHelper.getInt(data[0], data[1]); 69 70 selected = ((options & 0x200) != 0); 71 showGridLines = ((options & 0x02) != 0); 72 frozenPanes = ((options & 0x08) != 0); 73 displayZeroValues = ((options & 0x10) != 0); 74 frozenNotSplit = ((options & 0x100) != 0); 75 } 76 77 82 public boolean isSelected() 83 { 84 return selected; 85 } 86 87 92 public boolean getShowGridLines() 93 { 94 return showGridLines; 95 } 96 97 102 public boolean getDisplayZeroValues() 103 { 104 return displayZeroValues; 105 } 106 107 112 public boolean getFrozen() 113 { 114 return frozenPanes; 115 } 116 117 122 public boolean getFrozenNotSplit() 123 { 124 return frozenNotSplit; 125 } 126 } 127 128 129 130 131 132 133 134 | Popular Tags |