1 31 package org.pdfbox.afmtypes; 32 33 import java.util.ArrayList ; 34 import java.util.List ; 35 36 import org.pdfbox.util.BoundingBox; 37 38 44 public class CharMetric 45 { 46 private int characterCode; 47 48 private float wx; 49 private float w0x; 50 private float w1x; 51 52 private float wy; 53 private float w0y; 54 private float w1y; 55 56 private float[] w; 57 private float[] w0; 58 private float[] w1; 59 private float[] vv; 60 61 private String name; 62 private BoundingBox boundingBox; 63 private List ligatures = new ArrayList (); 64 65 68 public BoundingBox getBoundingBox() 69 { 70 return boundingBox; 71 } 72 73 76 public void setBoundingBox(BoundingBox bBox) 77 { 78 boundingBox = bBox; 79 } 80 81 84 public int getCharacterCode() 85 { 86 return characterCode; 87 } 88 89 92 public void setCharacterCode(int cCode) 93 { 94 characterCode = cCode; 95 } 96 97 102 public void addLigature( Ligature ligature ) 103 { 104 ligatures.add( ligature ); 105 } 106 107 110 public List getLigatures() 111 { 112 return ligatures; 113 } 114 115 118 public void setLigatures(List lig) 119 { 120 this.ligatures = lig; 121 } 122 123 126 public String getName() 127 { 128 return name; 129 } 130 131 134 public void setName(String n) 135 { 136 this.name = n; 137 } 138 139 142 public float[] getVv() 143 { 144 return this.vv; 145 } 146 147 150 public void setVv(float[] vvValue) 151 { 152 this.vv = vvValue; 153 } 154 155 158 public float[] getW() 159 { 160 return this.w; 161 } 162 163 166 public void setW(float[] wValue) 167 { 168 this.w = wValue; 169 } 170 171 174 public float[] getW0() 175 { 176 return this.w0; 177 } 178 179 182 public void setW0(float[] w0Value) 183 { 184 w0 = w0Value; 185 } 186 187 190 public float getW0x() 191 { 192 return w0x; 193 } 194 195 198 public void setW0x(float w0xValue) 199 { 200 w0x = w0xValue; 201 } 202 203 206 public float getW0y() 207 { 208 return w0y; 209 } 210 211 214 public void setW0y(float w0yValue) 215 { 216 w0y = w0yValue; 217 } 218 219 222 public float[] getW1() 223 { 224 return this.w1; 225 } 226 227 230 public void setW1(float[] w1Value) 231 { 232 w1 = w1Value; 233 } 234 235 238 public float getW1x() 239 { 240 return w1x; 241 } 242 243 246 public void setW1x(float w1xValue) 247 { 248 w1x = w1xValue; 249 } 250 251 254 public float getW1y() 255 { 256 return w1y; 257 } 258 259 262 public void setW1y(float w1yValue) 263 { 264 w1y = w1yValue; 265 } 266 267 270 public float getWx() 271 { 272 return wx; 273 } 274 275 278 public void setWx(float wxValue) 279 { 280 wx = wxValue; 281 } 282 283 286 public float getWy() 287 { 288 return wy; 289 } 290 291 294 public void setWy(float wyValue) 295 { 296 this.wy = wyValue; 297 } 298 299 } | Popular Tags |