Methods defined by GraphicsEnvironment class in java.awt package

GraphicsEnvironment class is used to indicate list of Font and GraphicsDevice objects. Methods defined by GraphicsEnvironment class:

getAvailableFontFamilyNames( ) method: It is used to return names of font families which are available.


String[ ] getAvailableFontFamilyNames( )

getAllFonts( ) method: It is used to return Font objects for all available fonts.


Font[ ] getAllFonts( )

getLocalGraphicsEnvironment( ) method: It is a static method used to get a reference to the GraphicsEnvironment.


static GraphicsEnvironment getLocalGraphicsEnvironment( )

Leave a Reply