java.lang.Object | ||
↳ | java.awt.GraphicsEnvironment | |
↳ | sun.java2d.HeadlessGraphicsEnvironment |
Headless decorator implementation of a SunGraphicsEnvironment
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
Graphics2D object for rendering into the
specified BufferedImage . | |||||||||||
Returns an array containing a one-point size instance of all fonts
available in this
GraphicsEnvironment . | |||||||||||
Returns an array containing the names of all font families in this
GraphicsEnvironment localized for the specified locale. | |||||||||||
Returns an array containing the names of all font families in this
GraphicsEnvironment localized for the default locale,
as returned by Locale.getDefault() . | |||||||||||
Returns the Point where Windows should be centered.
| |||||||||||
Returns the default screen
GraphicsDevice . | |||||||||||
Returns the current font configuration.
| |||||||||||
Returns the maximum bounds for centered Windows.
| |||||||||||
Returns an array of all of the screen
GraphicsDevice
objects. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns a Graphics2D
object for rendering into the
specified BufferedImage
.
img | the specified BufferedImage |
---|
Graphics2D
to be used for rendering into
the specified BufferedImage
Returns an array containing a one-point size instance of all fonts
available in this GraphicsEnvironment
. Typical usage
would be to allow a user to select a particular font. Then, the
application can size the font and set various font attributes by
calling the deriveFont
method on the choosen instance.
This method provides for the application the most precise control
over which Font
instance is used to render text.
If a font in this GraphicsEnvironment
has multiple
programmable variations, only one
instance of that Font
is returned in the array, and
other variations must be derived by the application.
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 Font
array. The other variations
must be derived by the application.
Font
objectsReturns an array containing the names of all font families in this
GraphicsEnvironment
localized for the specified locale.
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.
l | a Locale object that represents a
particular geographical, political, or cultural region.
Specifying null is equivalent to
specifying Locale.getDefault() . |
---|
String
containing font family names
localized for the specified Locale
, or a
suitable alternative name if no name exists for the specified locale.Returns an array containing the names of all font families in this
GraphicsEnvironment
localized for the default locale,
as returned by Locale.getDefault()
.
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.
String
containing font family names
localized for the default locale, or a suitable alternative
name if no name exists for this locale.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().
HeadlessException |
---|
Returns the default screen GraphicsDevice
.
GraphicsDevice
that represents the
default screen deviceHeadlessException |
---|
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
GraphicsConfiguration.getBounds()
and
Toolkit.getScreenInsets()
.
HeadlessException |
---|
Returns an array of all of the screen GraphicsDevice
objects.
GraphicsDevice
objects that represent screen devicesHeadlessException |
---|