Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.awt.GraphicsEnvironment

java.lang.Object
    |
    +----java.awt.GraphicsEnvironment

public abstract class GraphicsEnvironment
extends Object
This class specifies the graphics environment. The resources in this environment might be local or on a remote machine. The graphics environment consists of a number of GraphicsDevice objects and Font objects. GraphicsDevice objects are typically screens or printers and are the destination of Graphics2D drawing methods. Each GraphicsDevice has a number of GraphicsConfiguration objects associated with it. These specify the different configurations in which the GraphicsDevice can be used.

See Also:
GraphicsDevice, GraphicsConfiguration

Constructor Summary
 GraphicsEnvironment()
 
 

Method Summary
Graphics2D  createGraphics(BufferedImage img)
Returns a Graphics2D object for rendering into the given BufferedImage.
Font[]  getAllFonts()
Returns all fonts available in this environment.
GraphicsDevice  getDefaultScreenDevice()
Returns the default screen graphics device.
Font  getFont(String fontFaceName)
 
Font[]  getFonts(TextAttributeSet attributes)
Returns all Fonts available in this environment that match the specified AttributeSet.
ImagingLib  getImagingLib()
Returns a ImagingLib object that can used to process some/all of the imaging ops.
static GraphicsEnvironment  getLocalGraphicsEnvironment()
Returns the local graphics environment.
PrinterJob  getPrinterJob()
Gets a PrinterJob object suitable for the the current platform.
GraphicsDevice[]  getScreenDevices()
Returns an array of all of the screen devices.
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsEnvironment

protected GraphicsEnvironment()
Method Detail

getLocalGraphicsEnvironment

public static GraphicsEnvironment getLocalGraphicsEnvironment()
Returns the local graphics environment.

getScreenDevices

public abstract GraphicsDevice[] getScreenDevices()
Returns an array of all of the screen devices.

getDefaultScreenDevice

public abstract GraphicsDevice getDefaultScreenDevice()
Returns the default screen graphics device.

createGraphics

public abstract Graphics2D createGraphics(BufferedImage img)
Returns a Graphics2D object for rendering into the given BufferedImage.

getImagingLib

public abstract ImagingLib getImagingLib()
Returns a ImagingLib object that can used to process some/all of the imaging ops. Can be null.

getAllFonts

public abstract Font[] getAllFonts()
Returns all fonts available in this environment.

getFonts

public abstract Font[] getFonts(TextAttributeSet attributes)
Returns all Fonts available in this environment that match the specified AttributeSet.

getFont

public abstract Font getFont(String fontFaceName)

getPrinterJob

public abstract PrinterJob getPrinterJob()
Gets a PrinterJob object suitable for the the current platform.
Returns:
a PrinterJob object.
See Also:
java.awt.PrinterJob

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.