示例#1
0
 public void parse(String name, String value) {
   if (name.equals("font")) {
     int[] res = (int[]) BeanTools.getConvertersMap().get(int[].class).convert(value);
     fontno = res[0];
     if (res.length > 1) fontbank = res[1];
     if (res.length > 2) alignmt = ALIGNMT.getValue(res[2]);
   } else if (name.equals("text")) {
     text = value;
   }
 }
示例#2
0
 public FontType(Object root, int fontno, int fontbank, int alignmt) {
   this(root, fontno, fontbank, ALIGNMT.getValue(alignmt));
 }