Example usage for Java java.awt GraphicsEnvironment fields, constructors, methods, implement or subclass
The text is from its open source code.
Graphics2D | createGraphics(BufferedImage img) Returns a Graphics2D object for rendering into the specified BufferedImage . |
Font[] | getAllFonts() Returns an array containing a one-point size instance of all fonts available in this GraphicsEnvironment . |
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() . |
String[] | getAvailableFontFamilyNames(Locale l) Returns an array containing the names of all font families in this GraphicsEnvironment localized for the specified locale. |
Point | getCenterPoint() Returns the Point where Windows should be centered. |
GraphicsDevice | getDefaultScreenDevice() Returns the default screen GraphicsDevice . |
GraphicsEnvironment | getLocalGraphicsEnvironment() Returns the local GraphicsEnvironment . |
Rectangle | getMaximumWindowBounds() Returns the maximum bounds for centered Windows. |
GraphicsDevice[] | getScreenDevices() Returns an array of all of the screen GraphicsDevice objects. |
boolean | isHeadless() Tests whether or not a display, keyboard, and mouse can be supported in this environment. |
boolean | isHeadlessInstance() Returns whether or not a display, keyboard, and mouse can be supported in this graphics environment. |
void | preferLocaleFonts() Indicates a preference for locale-specific fonts in the mapping of logical fonts to physical fonts. |
void | preferProportionalFonts() Indicates a preference for proportional over non-proportional (e.g. |
boolean | registerFont(Font font) Registers a created Font in this GraphicsEnvironment . |