1 19 20 package jxl.write; 21 22 import jxl.biff.DisplayFormat; 23 import jxl.write.biff.CellXFRecord; 24 import jxl.format.Colour; 25 import jxl.format.Alignment; 26 import jxl.format.VerticalAlignment; 27 import jxl.format.Border; 28 import jxl.format.BorderLineStyle; 29 import jxl.format.Pattern; 30 import jxl.format.Orientation; 31 import jxl.format.CellFormat; 32 33 34 45 public class WritableCellFormat extends CellXFRecord 46 { 47 52 public WritableCellFormat() 53 { 54 this(WritableWorkbook.ARIAL_10_PT, NumberFormats.DEFAULT); 55 } 56 57 62 public WritableCellFormat(WritableFont font) 63 { 64 this(font, NumberFormats.DEFAULT); 65 } 66 67 73 public WritableCellFormat(DisplayFormat format) 74 { 75 this(WritableWorkbook.ARIAL_10_PT, format); 76 } 77 78 85 public WritableCellFormat(WritableFont font, DisplayFormat format) 86 { 87 super(font, format); 88 } 89 90 95 public WritableCellFormat(CellFormat format) 96 { 97 super(format); 98 } 99 100 106 public void setAlignment(Alignment a) throws WriteException 107 { 108 super.setAlignment(a); 109 } 110 111 117 public void setVerticalAlignment(VerticalAlignment va) throws WriteException 118 { 119 super.setVerticalAlignment(va); 120 } 121 122 128 public void setOrientation(Orientation o) throws WriteException 129 { 130 super.setOrientation(o); 131 } 132 133 141 public void setWrap(boolean w) throws WriteException 142 { 143 super.setWrap(w); 144 } 145 146 153 public void setBorder(Border b, BorderLineStyle ls) throws WriteException 154 { 155 super.setBorder(b, ls, Colour.BLACK); 156 } 157 158 166 public void setBorder(Border b, BorderLineStyle ls, Colour c) 167 throws WriteException 168 { 169 super.setBorder(b, ls, c); 170 } 171 172 178 public void setBackground(Colour c) throws WriteException 179 { 180 this.setBackground(c, Pattern.SOLID); 181 } 182 183 190 public void setBackground(Colour c, Pattern p) throws WriteException 191 { 192 super.setBackground(c, p); 193 } 194 195 201 public void setShrinkToFit(boolean s) throws WriteException 202 { 203 super.setShrinkToFit(s); 204 } 205 206 211 public void setIndentation(int i) throws WriteException 212 { 213 super.setIndentation(i); 214 } 215 216 217 225 public void setLocked(boolean l) throws WriteException 226 { 227 super.setLocked(l); 228 } 229 230 } 231 232 233 234 235 236 237 | Popular Tags |