1 19 20 package jxl; 21 22 import jxl.format.CellFormat; 23 24 28 public final class CellView 29 { 30 36 private int dimension; 37 38 43 private int size; 44 45 48 private boolean depUsed; 49 50 53 private boolean hidden; 54 55 58 private CellFormat format; 59 60 63 public CellView() 64 { 65 hidden = false; 66 depUsed =false; 67 dimension = 1; 68 size = 1; 69 } 70 71 76 public void setHidden(boolean h) 77 { 78 hidden = h; 79 } 80 81 86 public boolean isHidden() 87 { 88 return hidden; 89 } 90 91 98 public void setDimension(int d) 99 { 100 dimension = d; 101 depUsed = true; 102 } 103 104 111 public void setSize(int d) 112 { 113 size = d; 114 depUsed = false; 115 } 116 117 124 public int getDimension() 125 { 126 return dimension; 127 } 128 129 135 public int getSize() 136 { 137 return size; 138 } 139 140 145 public void setFormat(CellFormat cf) 146 { 147 format = cf; 148 } 149 150 156 public CellFormat getFormat() 157 { 158 return format; 159 } 160 161 167 public boolean depUsed() 168 { 169 return depUsed; 170 } 171 } 172 | Popular Tags |