API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. GraphicsEnvironment View Source
Author(s)
Since
Version
1.68, 02/13/07
Serial
Hierarchy
 Object
      GraphicsEnvironment
Implements
Subclasses
Description
publicabstract abstract class GraphicsEnvironment
  The GraphicsEnvironment class describes the collection of GraphicsDevice objects and Font objects available to a Java(tm) application on a particular platform.
Constructors
protected GraphicsEnvironment ()
  This is an abstract class and cannot be instantiated directly.
Methods
Hide/Show inherited methods
pack-privatestatic void checkHeadless () throws HeadlessException
  Check for headless state and throw HeadlessException if headless
publicabstract Graphics2D createGraphics (BufferedImage img)
  Returns a Graphics2D object for rendering into the specified BufferedImage.
publicabstract Font getAllFonts ()
  Returns an array containing a one-point size instance of all fonts available in this GraphicsEnvironment.
publicabstract String getAvailableFontFamilyNames ()
  Returns an array containing the names of all font families in this GraphicsEnvironment localized for the default locale, as returned by Locale.getDefault().
publicabstract String getAvailableFontFamilyNames (Locale l)
  Returns an array containing the names of all font families in this GraphicsEnvironment localized for the specified locale.
public Point getCenterPoint () throws HeadlessException
  Returns the Point where Windows should be centered.
publicabstract GraphicsDevice getDefaultScreenDevice () throws HeadlessException
  Returns the default screen GraphicsDevice.
pack-privatestatic String getHeadlessMessage ()
 
publicstaticsynchronized GraphicsEnvironment getLocalGraphicsEnvironment ()
  Returns the local GraphicsEnvironment.
public Rectangle getMaximumWindowBounds () throws HeadlessException
  Returns the maximum bounds for centered Windows.
publicabstract GraphicsDevice getScreenDevices () throws HeadlessException
  Returns an array of all of the screen GraphicsDevice objects.
publicstatic boolean isHeadless ()
  Tests whether or not a display, keyboard, and mouse can be supported in this environment.
public boolean isHeadlessInstance ()
  Returns whether or not a display, keyboard, and mouse can be supported in this graphics environment.
public void preferLocaleFonts ()
  Indicates a preference for locale-specific fonts in the mapping of logical fonts to physical fonts.
public void preferProportionalFonts ()
  Indicates a preference for proportional over non-proportional (e.g.
public boolean registerFont (Font font)
  Registers a /created Fontin this GraphicsEnvironment.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar