Home » openjdk-7 » sun » java2d » [javadoc | source]
sun.java2d
abstract public class: SunGraphicsEnvironment [javadoc | source]
java.lang.Object
   java.awt.GraphicsEnvironment
      sun.java2d.SunGraphicsEnvironment

All Implemented Interfaces:
    DisplayChangedListener

Direct Known Subclasses:
    X11GraphicsEnvironment, Win32GraphicsEnvironment

This is an implementation of a GraphicsEnvironment object for the default local GraphicsEnvironment.
Field Summary
public static  boolean isOpenSolaris     
protected  GraphicsDevice[] screens     
protected  SunDisplayChanger displayChanger     
Constructor:
 public SunGraphicsEnvironment() 
Method from sun.java2d.SunGraphicsEnvironment Summary:
addDisplayChangedListener,   createGraphics,   displayChanged,   getAllFonts,   getAvailableFontFamilyNames,   getAvailableFontFamilyNames,   getDefaultScreenDevice,   getFontManagerForSGE,   getNumScreens,   getScreenDevices,   getUsableBounds,   isDisplayLocal,   isFlipStrategyPreferred,   makeScreenDevice,   paletteChanged,   removeDisplayChangedListener,   useAlternateFontforJALocales
Methods from java.awt.GraphicsEnvironment:
access$002,   access$102,   checkHeadless,   createGraphics,   getAllFonts,   getAvailableFontFamilyNames,   getAvailableFontFamilyNames,   getCenterPoint,   getDefaultScreenDevice,   getHeadlessMessage,   getLocalGraphicsEnvironment,   getMaximumWindowBounds,   getScreenDevices,   isHeadless,   isHeadlessInstance,   preferLocaleFonts,   preferProportionalFonts,   registerFont
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.java2d.SunGraphicsEnvironment Detail:
 public  void addDisplayChangedListener(DisplayChangedListener client) 
    Add a DisplayChangeListener to be notified when the display settings are changed.
 public Graphics2D createGraphics(BufferedImage img) 
    Returns a Graphics2D object for rendering into the given BufferedImage.
 public  void displayChanged() 
    From the DisplayChangedListener interface; called when the display mode has been changed.
 public Font[] getAllFonts() 
    Returns all fonts available in this environment.
 public String[] getAvailableFontFamilyNames() 
 public String[] getAvailableFontFamilyNames(Locale requestedLocale) 
 public GraphicsDevice getDefaultScreenDevice() 
    Returns the default screen graphics device.
 public static FontManagerForSGE getFontManagerForSGE() 
 abstract protected int getNumScreens()
    Returns the number of screen devices of this graphics environment.
 public synchronized GraphicsDevice[] getScreenDevices() 
    Returns an array of all of the screen devices.
 public static Rectangle getUsableBounds(GraphicsDevice gd) 
    Return the bounds of a GraphicsDevice, less its screen insets. See also java.awt.GraphicsEnvironment.getUsableBounds();
 abstract public boolean isDisplayLocal()
    Returns true when the display is local, false for remote displays.
 public boolean isFlipStrategyPreferred(ComponentPeer peer) 
    Returns true if FlipBufferStrategy with COPIED buffer contents is preferred for this peer's GraphicsConfiguration over BlitBufferStrategy, false otherwise. The reason FlipBS could be preferred is that in some configurations an accelerated copy to the screen is supported (like Direct3D 9)
 abstract protected GraphicsDevice makeScreenDevice(int screennum)
    Create and return the screen device with the specified number. The device with number 0 will be the default device (returned by #getDefaultScreenDevice() .
 public  void paletteChanged() 
    Part of the DisplayChangedListener interface: propagate this event to listeners
 public  void removeDisplayChangedListener(DisplayChangedListener client) 
    Remove a DisplayChangeListener from Win32GraphicsEnvironment
 public static  void useAlternateFontforJALocales()