All Packages Class Hierarchy This Package Previous Next Index
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
GraphicsEnvironment()
-
createGraphics(BufferedImage)
- Returns a Graphics2D object for rendering into the
given BufferedImage.
getAllFonts()
- Returns all fonts available in this environment.
getDefaultScreenDevice()
- Returns the default screen graphics device.
getFont(String)
-
getFonts(TextAttributeSet)
- Returns all Fonts available in this environment that match
the specified AttributeSet.
getImagingLib()
- Returns a ImagingLib object that can used to process
some/all of the imaging ops.
getLocalGraphicsEnvironment()
- Returns the local graphics environment.
getPrintJob2D()
- Gets a
PrintJob2D
object suitable for the
the current platform.
getScreenDevices()
- Returns an array of all of the screen devices.
GraphicsEnvironment
protected GraphicsEnvironment()
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)
getPrintJob2D
public abstract PrintJob2D getPrintJob2D()
- Gets a
PrintJob2D
object suitable for the
the current platform.
- Returns:
- a
PrintJob2D
object. - See Also:
- PrintJob2D
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature