- /**
- * 获取指定字体类型的大小
- * @param a_type
- * @return
- */
- private int getDefFontSize(String a_type)
- {
- if(a_type.equals("small"))
- return Font.SIZE_SMALL;
- else if(a_type.equals("medium"))
- return Font.SIZE_MEDIUM;
- else if(a_type.equals("large"))
- return Font.SIZE_LARGE;
- else
- return Font.SIZE_SMALL;
- }
/** * 获取指定字体类型的大小 * @param a_type * @return */ private int getDefFontSize(String a_type) { if(a_type.equals("small")) return Font.SIZE_SMALL; else if(a_type.equals("medium")) return Font.SIZE_MEDIUM; else if(a_type.equals("large")) return Font.SIZE_LARGE; else return Font.SIZE_SMALL; } |