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

All Implemented Interfaces:
    DisplayChangedListener, FontSupport

This is an implementation of a GraphicsEnvironment object for the default local GraphicsEnvironment used by the Java Runtime Environment for X11 environments.
Field Summary
 HashMap oblmap     
Fields inherited from sun.java2d.SunGraphicsEnvironment:
isLinux,  isSolaris,  isWindows,  noType1Font,  lucidaFontName,  lucidaFileName,  debugFonts,  logger,  jreLibDirName,  jreFontDirName,  fontPath,  registeredFontFiles,  eudcFontFileName,  screens,  ttFilter,  t1Filter,  displayChanger
Constructor:
 public X11GraphicsEnvironment() 
Method from sun.awt.X11GraphicsEnvironment Summary:
addFontToPlatformFontPath,   createFontConfiguration,   createFontConfiguration,   getCenterPoint,   getDefaultFontFaceName,   getDefaultScreenDevice,   getDefaultScreenNum,   getFileNameFromPlatformName,   getFileNameFromXLFD,   getMaximumWindowBounds,   getNativeNames,   getNumScreens,   getPlatformFontPathFromFontConfig,   getXineramaWindowBounds,   isDisplayLocal,   isGLXAvailable,   isGLXVerbose,   loadFonts,   makeScreenDevice,   paletteChanged,   registerFontDir,   registerFontDirs,   registerPlatformFontsUsedByFontConfiguration,   runningXinerama,   setNativeFontPath
Methods from sun.java2d.SunGraphicsEnvironment:
addDisplayChangedListener,   addFontToPlatformFontPath,   addToMissingFontFileList,   createCompositeFonts,   createFontConfiguration,   createFontConfiguration,   createGraphics,   displayChanged,   fontSupportsDefaultEncoding,   getAllFonts,   getAllInstalledFonts,   getAvailableFontFamilyNames,   getAvailableFontFamilyNames,   getDefaultFontFaceName,   getDefaultFontFile,   getDefaultScreenDevice,   getFileNameFromPlatformName,   getFontConfiguration,   getInstalledFontFamilyNames,   getJREFontFamilyNames,   getNativeNames,   getNumScreens,   getPlatformFontDirs,   getPlatformFontPath,   getPlatformFontPathFromFontConfig,   getScreenDevices,   getSystemStartupLocale,   getUsableBounds,   isLogicalFont,   isOpenJDK,   loadFontFiles,   loadFonts,   makeScreenDevice,   paletteChanged,   register1dot0Fonts,   registerFontDir,   registerFontDirs,   registerFontFile,   registerFontsInDir,   registerJREFontsWithPlatform,   registerPlatformFontsUsedByFontConfiguration,   removeDisplayChangedListener,   useAbsoluteFontFileNames,   useAlternateFontforJALocales
Methods from java.awt.GraphicsEnvironment:
createGraphics,   getAllFonts,   getAvailableFontFamilyNames,   getAvailableFontFamilyNames,   getCenterPoint,   getDefaultScreenDevice,   getLocalGraphicsEnvironment,   getMaximumWindowBounds,   getScreenDevices,   isHeadless,   isHeadlessInstance,   preferLocaleFonts,   preferProportionalFonts,   registerFont
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.X11GraphicsEnvironment Detail:
 protected  void addFontToPlatformFontPath(String platformName) 
 protected FontConfiguration createFontConfiguration() 
 public FontConfiguration createFontConfiguration(boolean preferLocaleFonts,
    boolean preferPropFonts) 
 public Point getCenterPoint() 
    Override for Xinerama case: call new Solaris API for getting the correct centering point from the windowing system.
 public String getDefaultFontFaceName() 
    Returns face name for default font, or null if no face names are used for CompositeFontDescriptors for this platform.
 public GraphicsDevice getDefaultScreenDevice() 
    Returns the default screen graphics device.
 protected native int getDefaultScreenNum()
 public String getFileNameFromPlatformName(String platName) 
    Takes family name property in the following format: "-linotype-helvetica-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1" and returns the name of the corresponding physical font. This code is used to resolve font configuration fonts, and expects only to get called for these fonts.
 public String getFileNameFromXLFD(String name) 
    Returns the face name for the given XLFD.
 public Rectangle getMaximumWindowBounds() 
    Override for Xinerama case
 protected String[] getNativeNames(String fontFileName,
    String platformName) 
 protected native int getNumScreens()
 protected  void getPlatformFontPathFromFontConfig() 
 protected Rectangle getXineramaWindowBounds() 
    Return the bounds for a centered Window on a system running in Xinerama mode. Calculations are based on the assumption of a perfectly rectangular display area (display edges line up with one another, and displays have consistent width and/or height). The bounds to return depend on the arrangement of displays and on where Windows are to be centered. There are two common situations: 1) The center point lies at the center of the combined area of all the displays. In this case, the combined area of all displays is returned. 2) The center point lies at the center of a single display. In this case the user most likely wants centered Windows to be constrained to that single display. The boundaries of the one display are returned. It is possible for the center point to be at both the center of the entire display space AND at the center of a single monitor (a square of 9 monitors, for instance). In this case, the entire display area is returned. Because the center point is arbitrarily settable by the user, it could fit neither of the cases above. The fallback case is to simply return the combined area for all screens.
 public static boolean isDisplayLocal() 
 public static boolean isGLXAvailable() 
 public static boolean isGLXVerbose() 
 public  void loadFonts() 
 protected GraphicsDevice makeScreenDevice(int screennum) 
 public  void paletteChanged() 
    From the DisplayChangedListener interface; devices do not need to react to this event.
 protected  void registerFontDir(String path) 
 protected  void registerFontDirs(String pathName) 
 protected  void registerPlatformFontsUsedByFontConfiguration() 
 public boolean runningXinerama() 
 public static  void setNativeFontPath()