160 |
return name; |
return name; |
161 |
} |
} |
162 |
|
|
163 |
protected static void copyStyleToAttrs (int style, Map attrs) |
public static void copyStyleToAttrs (int style, Map attrs) |
164 |
{ |
{ |
165 |
if ((style & Font.BOLD) == Font.BOLD) |
if ((style & Font.BOLD) == Font.BOLD) |
166 |
attrs.put (TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD); |
attrs.put (TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD); |
179 |
attrs.put (TextAttribute.FAMILY, fam); |
attrs.put (TextAttribute.FAMILY, fam); |
180 |
} |
} |
181 |
|
|
182 |
protected static void copySizeToAttrs (float size, Map attrs) |
public static void copySizeToAttrs (float size, Map attrs) |
183 |
{ |
{ |
184 |
attrs.put (TextAttribute.SIZE, new Float (size)); |
attrs.put (TextAttribute.SIZE, new Float (size)); |
185 |
} |
} |