FileDocCategorySizeDatePackage
CommonGraphicsEnvironment.javaAPI DocAndroid 1.5 API2200Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.gl

CommonGraphicsEnvironment

public abstract class CommonGraphicsEnvironment extends GraphicsEnvironment
Common GraphicsEnvironment implementation

Fields Summary
Constructors Summary
Methods Summary
public java.awt.Graphics2DcreateGraphics(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();