java.awt

Class GraphicsEnvironment

  • java.lang.Object
    • java.awt.GraphicsEnvironment
  • public abstract class GraphicsEnvironment extends java.lang.Object
    The GraphicsEnvironment class describes the collection of GraphicsDevice objects and Font objects available to a Java(tm) application on a particular platform. The resources in this GraphicsEnvironment might be local or on a remote machine. GraphicsDevice objects can be screens, printers or image buffers and are the destination of Graphics2D drawing methods. Each GraphicsDevice has a number of GraphicsConfiguration objects associated with it. These objects specify the different configurations in which the GraphicsDevice can be used.
    See Also:
    GraphicsDevice, GraphicsConfiguration
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator getLocalGraphicsEnvironment Reveal DetailHide Detail
      Returns the local GraphicsEnvironment.
      Ordinary member indicator isHeadless Reveal DetailHide Detail
      Tests whether or not a display, keyboard, and mouse can be supported in this environment.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator createGraphics Reveal DetailHide Detail
      Returns a Graphics2D object for rendering into the specified BufferedImage.
      Ordinary member indicator getAllFonts Reveal DetailHide Detail
      Returns an array containing a one-point size instance of all fonts available in this GraphicsEnvironment.
      Ordinary member indicator getAvailableFontFamilyNames Reveal DetailHide Detail
      Returns an array containing the names of all font families in this GraphicsEnvironment localized for the default locale, as returned by Locale.getDefault().
      Ordinary member indicator getAvailableFontFamilyNames Reveal DetailHide Detail
      Returns an array containing the names of all font families in this GraphicsEnvironment localized for the specified locale.
      Ordinary member indicator getCenterPoint Reveal DetailHide Detail
      Returns the Point where Windows should be centered.
      Ordinary member indicator getDefaultScreenDevice Reveal DetailHide Detail
      Returns the default screen GraphicsDevice.
      Ordinary member indicator getMaximumWindowBounds Reveal DetailHide Detail
      Returns the maximum bounds for centered Windows.
      Ordinary member indicator getScreenDevices Reveal DetailHide Detail
      Returns an array of all of the screen GraphicsDevice objects.
      Ordinary member indicator isHeadlessInstance Reveal DetailHide Detail
      Returns whether or not a display, keyboard, and mouse can be supported in this graphics environment.
      Ordinary member indicator preferLocaleFonts Reveal DetailHide Detail
      Indicates a preference for locale-specific fonts in the mapping of logical fonts to physical fonts.
      Ordinary member indicator preferProportionalFonts Reveal DetailHide Detail
      Indicates a preference for proportional over non-proportional (e.g.
      Ordinary member indicator registerFont Reveal DetailHide Detail
      Registers a created Fontin this GraphicsEnvironment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge