Methods Summary |
---|
public java.awt.Graphics2D | createGraphics(java.awt.image.BufferedImage bufferedImage)
return new BufferedImageGraphics2D(bufferedImage);
|
public java.awt.Font[] | getAllFonts()
return CommonGraphics2DFactory.inst.getFontManager().getAllFonts();
|
public java.lang.String[] | getAvailableFontFamilyNames(java.util.Locale locale)
Font[] fonts = getAllFonts();
ArrayList<String> familyNames = new ArrayList<String>();
for (Font element : fonts) {
String name = element.getFamily(locale);
if (!familyNames.contains(name)) {
familyNames.add(name);
}
}
return familyNames.toArray(new String[familyNames.size()]);
|
public java.lang.String[] | getAvailableFontFamilyNames()
return CommonGraphics2DFactory.inst.getFontManager().getAllFamilies();
|