sun.awt.qt
Class QtGraphicsEnvironment

java.lang.Object
  extended by java.awt.GraphicsEnvironment
      extended by sun.awt.qt.QtGraphicsEnvironment

public class QtGraphicsEnvironment
extends GraphicsEnvironment


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

QtGraphicsEnvironment

public QtGraphicsEnvironment()
Method Detail

getDefaultScreenDevice

public GraphicsDevice getDefaultScreenDevice()
Description copied from class: GraphicsEnvironment
Returns the default screen GraphicsDevice.

Specified by:
getDefaultScreenDevice in class GraphicsEnvironment
Returns:
the GraphicsDevice that represents the default screen device.

getScreenDevices

public GraphicsDevice[] getScreenDevices()
Description copied from class: GraphicsEnvironment
Returns an array of all of the screen GraphicsDevice objects.

Specified by:
getScreenDevices in class GraphicsEnvironment
Returns:
an array containing all the GraphicsDevice objects that represent screen devices.

getAvailableFontFamilyNames

public String[] getAvailableFontFamilyNames()
Description copied from class: GraphicsEnvironment
Returns an array containing the names of all font families available in this GraphicsEnvironment. 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.

Specified by:
getAvailableFontFamilyNames in class GraphicsEnvironment
Returns:
an array of String containing names of font families.
See Also:
#getAllFonts, Font, Font.getFamily()

getAvailableFontFamilyNames

public String[] getAvailableFontFamilyNames(Locale l)
Description copied from class: GraphicsEnvironment
Returns an array containing the localized names of all font families available in this GraphicsEnvironment. 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.

Specified by:
getAvailableFontFamilyNames in class GraphicsEnvironment
Parameters:
l - a Locale object that represents a particular geographical, political, or cultural region
Returns:
an array of String objects containing names of font families specific to the specified Locale.
See Also:
#getAllFonts, Font, Font.getFamily()

createGraphics

public java.awt.Graphics2D createGraphics(java.awt.image.BufferedImage img)
Returns a Graphics2D object for rendering into the specified BufferedImage.

Specified by:
createGraphics in class GraphicsEnvironment
Parameters:
img - the specified BufferedImage
Returns:
a Graphics2D to be used for rendering into the specified BufferedImage.