|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.GraphicsEnvironment
sun.awt.qt.QtGraphicsEnvironment
public class QtGraphicsEnvironment
| Constructor Summary | |
|---|---|
QtGraphicsEnvironment()
|
|
| Method Summary | |
|---|---|
java.awt.Graphics2D |
createGraphics(java.awt.image.BufferedImage img)
Returns a Graphics2D object for rendering into the
specified BufferedImage. |
String[] |
getAvailableFontFamilyNames()
Returns an array containing the names of all font families available in this GraphicsEnvironment. |
String[] |
getAvailableFontFamilyNames(Locale l)
Returns an array containing the localized names of all font families available in this GraphicsEnvironment. |
GraphicsDevice |
getDefaultScreenDevice()
Returns the default screen GraphicsDevice. |
GraphicsDevice[] |
getScreenDevices()
Returns an array of all of the screen GraphicsDevice
objects. |
| Methods inherited from class java.awt.GraphicsEnvironment |
|---|
getLocalGraphicsEnvironment, isHeadless |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QtGraphicsEnvironment()
| Method Detail |
|---|
public GraphicsDevice getDefaultScreenDevice()
GraphicsEnvironmentGraphicsDevice.
getDefaultScreenDevice in class GraphicsEnvironmentGraphicsDevice that represents the
default screen device.public GraphicsDevice[] getScreenDevices()
GraphicsEnvironmentGraphicsDevice
objects.
getScreenDevices in class GraphicsEnvironmentGraphicsDevice
objects that represent screen devices.public String[] getAvailableFontFamilyNames()
GraphicsEnvironmentGraphicsEnvironment.
Typical usage would be to allow a user to select a particular family
name and allow the application to choose related variants of the
same family when the user specifies style attributes such
as Bold or Italic.
This method provides for the application some control over which
Font instance is used to render text, but allows the
Font object more flexibility in choosing its own best
match among multiple fonts in the same font family.
getAvailableFontFamilyNames in class GraphicsEnvironmentString containing names of font
families.#getAllFonts,
Font,
Font.getFamily()public String[] getAvailableFontFamilyNames(Locale l)
GraphicsEnvironmentGraphicsEnvironment.
Typical usage would be to allow a user to select a particular family
name and allow the application to choose related variants of the
same family when the user specifies style attributes such
as Bold or Italic.
This method provides for the application some control over which
Font instance used to render text, but allows the
Font object more flexibility in choosing its own best
match among multiple fonts in the same font family.
If l is null, this method returns an
array containing all font family names available in this
GraphicsEnvironment.
getAvailableFontFamilyNames in class GraphicsEnvironmentl - a Locale object that represents a
particular geographical, political, or cultural region
String objects containing names of
font families specific to the specified Locale.#getAllFonts,
Font,
Font.getFamily()public java.awt.Graphics2D createGraphics(java.awt.image.BufferedImage img)
Graphics2D object for rendering into the
specified BufferedImage.
createGraphics in class GraphicsEnvironmentimg - the specified BufferedImage
Graphics2D to be used for rendering into
the specified BufferedImage.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||