| Modifier and Type | Field and Description |
|---|---|
| private GraphicsEnvironment |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Graphics2D | createGraphics(BufferedImage img)
Implements abstract java. Returns a |
| public Font[] | getAllFonts()
Implements abstract java. Returns an array containing a one-point size instance of all fonts
available in this |
| public String[] | getAvailableFontFamilyNames()
Implements abstract java. Returns an array containing the names of all font families in this
|
| public String[] | getAvailableFontFamilyNames(Locale l)
Implements abstract java. Returns an array containing the names of all font families in this
|
| public Point | getCenterPoint()
Overrides java. Returns the Point where Windows should be centered. |
| public GraphicsDevice | getDefaultScreenDevice()
Implements abstract java. Returns the default screen |
| public Rectangle | getMaximumWindowBounds()
Overrides java. Returns the maximum bounds for centered Windows. |
| public GraphicsDevice[] | getScreenDevices()
Implements abstract java. Returns an array of all of the screen |
| ge | back to summary |
|---|---|
| private GraphicsEnvironment ge | |
| HeadlessGraphicsEnvironment | back to summary |
|---|---|
| public HeadlessGraphicsEnvironment(GraphicsEnvironment ge) | |
| createGraphics | back to summary |
|---|---|
| public Graphics2D createGraphics(BufferedImage img) Implements abstract java. Doc from java. Returns a
| |
| getAllFonts | back to summary |
|---|---|
| public Font[] getAllFonts() Implements abstract java. Doc from java. Returns an array containing a one-point size instance of all fonts
available in this
This method provides for the application the most precise control
over which
If a font in this environment has multiple programmable variations,
such as Multiple-Master fonts, only one instance of that font is
returned in the
| |
| getAvailableFontFamilyNames | back to summary |
|---|---|
| public String[] getAvailableFontFamilyNames() Implements abstract java. Doc from java. Returns an array containing the names of all font families in this
Typical usage would be for presentation to a user for selection of a particular family name. An application can then specify this name when creating a font, in conjunction with a style, such as bold or italic, giving the font system flexibility in choosing its own best match among multiple fonts in the same font family.
| |
| getAvailableFontFamilyNames | back to summary |
|---|---|
| public String[] getAvailableFontFamilyNames(Locale l) Implements abstract java. Doc from java. Returns an array containing the names of all font families in this
Typical usage would be for presentation to a user for selection of a particular family name. An application can then specify this name when creating a font, in conjunction with a style, such as bold or italic, giving the font system flexibility in choosing its own best match among multiple fonts in the same font family.
| |
| getCenterPoint | back to summary |
|---|---|
| public Point getCenterPoint() throws HeadlessException Overrides java. Doc from java. Returns the Point where Windows should be centered. It is recommended that centered Windows be checked to ensure they fit within the available display area using getMaximumWindowBounds().
| |
| getDefaultScreenDevice | back to summary |
|---|---|
| public GraphicsDevice getDefaultScreenDevice() throws HeadlessException Implements abstract java. Doc from java. Returns the default screen
| |
| getMaximumWindowBounds | back to summary |
|---|---|
| public Rectangle getMaximumWindowBounds() throws HeadlessException Overrides java. Doc from java. Returns the maximum bounds for centered Windows. These bounds account for objects in the native windowing system such as task bars and menu bars. The returned bounds will reside on a single display with one exception: on multi-screen systems where Windows should be centered across all displays, this method returns the bounds of the entire display area.
To get the usable bounds of a single display, use
| |
| getScreenDevices | back to summary |
|---|---|
| public GraphicsDevice[] getScreenDevices() throws HeadlessException Implements abstract java. Doc from java. Returns an array of all of the screen
| |