1 19 20 package jxl.write; 21 22 import jxl.format.Colour; 23 import jxl.format.UnderlineStyle; 24 import jxl.format.ScriptStyle; 25 26 32 public class Font extends WritableFont 33 { 34 39 public static final FontName ARIAL = WritableFont.ARIAL; 40 45 public static final FontName TIMES = WritableFont.TIMES; 46 47 49 53 public static final BoldStyle NO_BOLD = WritableFont.NO_BOLD; 54 58 public static final BoldStyle BOLD = WritableFont.BOLD; 59 60 64 public static final UnderlineStyle NO_UNDERLINE = 65 UnderlineStyle.NO_UNDERLINE; 66 67 70 public static final UnderlineStyle SINGLE = UnderlineStyle.SINGLE; 71 72 75 public static final UnderlineStyle DOUBLE = UnderlineStyle.DOUBLE; 76 77 80 public static final UnderlineStyle SINGLE_ACCOUNTING = 81 UnderlineStyle.SINGLE_ACCOUNTING; 82 83 86 public static final UnderlineStyle DOUBLE_ACCOUNTING = 87 UnderlineStyle.DOUBLE_ACCOUNTING; 88 89 public static final ScriptStyle NORMAL_SCRIPT = ScriptStyle.NORMAL_SCRIPT; 91 public static final ScriptStyle SUPERSCRIPT = ScriptStyle.SUPERSCRIPT; 92 public static final ScriptStyle SUBSCRIPT = ScriptStyle.SUBSCRIPT; 93 94 101 public Font(FontName fn) 102 { 103 super(fn); 104 } 105 106 114 public Font(FontName fn, int ps) 115 { 116 super(fn, ps); 117 } 118 119 127 public Font(FontName fn, int ps, BoldStyle bs) 128 { 129 super(fn, ps, bs); 130 } 131 132 142 public Font(FontName fn, int ps, BoldStyle bs, boolean italic) 143 { 144 super(fn, ps, bs, italic); 145 } 146 147 158 public Font(FontName fn, 159 int ps, 160 BoldStyle bs, 161 boolean it, 162 UnderlineStyle us) 163 { 164 super(fn, ps, bs, it, us); 165 } 166 167 168 180 public Font(FontName fn, 181 int ps, 182 BoldStyle bs, 183 boolean it, 184 UnderlineStyle us, 185 Colour c) 186 { 187 super(fn, ps, bs, it, us, c); 188 } 189 190 191 205 public Font(FontName fn, 206 int ps, 207 BoldStyle bs, 208 boolean it, 209 UnderlineStyle us, 210 Colour c, 211 ScriptStyle ss) 212 { 213 super(fn, ps, bs, it, us, c, ss); 214 } 215 } 216 217 | Popular Tags |