Save This Page
Home » openjdk-7 » sun » awt » [javadoc | source]
sun.awt
abstract public class: UNIXToolkit [javadoc | source]
java.lang.Object
   java.awt.Toolkit
      sun.awt.SunToolkit
         sun.awt.UNIXToolkit

All Implemented Interfaces:
    ComponentFactory, InputMethodSupport, WindowClosingListener, WindowClosingSupport, KeyboardFocusManagerPeerProvider

Direct Known Subclasses:
    MToolkit, XToolkit

Field Summary
public static final  Object GTK_LOCK    All calls into GTK should be synchronized on this lock 
public static final  String FONTCONFIGAAHINT     
Fields inherited from sun.awt.SunToolkit:
GRAB_EVENT_MASK,  numberOfButtons,  MAX_BUTTONS_SUPPORTED,  imgCache,  DEFAULT_WAIT_TIME,  eqNoEvents,  DESKTOPFONTHINTS
Fields inherited from java.awt.Toolkit:
desktopProperties,  desktopPropsSupport,  $assertionsDisabled
Method from sun.awt.UNIXToolkit Summary:
checkGtkVersion,   getDatatransferTimeout,   getDesktopAAHints,   getGTKIcon,   getStockIcon,   isNativeGTKAvailable,   lazilyLoadDesktopProperty,   lazilyLoadGTKIcon,   loadGTK,   loadIconCallback,   sync
Methods from sun.awt.SunToolkit:
addModalityListener,   awtLock,   awtLockNotify,   awtLockNotifyAll,   awtLockWait,   awtLockWait,   awtTryLock,   awtUnlock,   checkAndSetPolicy,   checkImage,   closeSplashScreen,   consumeNextKeyTyped,   createButton,   createCanvas,   createCheckbox,   createCheckboxMenuItem,   createChoice,   createDialog,   createDragSourceContextPeer,   createFileDialog,   createFrame,   createImage,   createImage,   createImage,   createImage,   createInputMethodWindow,   createKeyboardFocusManagerPeer,   createLabel,   createList,   createMenu,   createMenuBar,   createMenuItem,   createNewAppContext,   createPanel,   createPopupMenu,   createRobot,   createScrollPane,   createScrollbar,   createSystemTray,   createTextArea,   createTextField,   createTrayIcon,   createWindow,   disableBackgroundErase,   disableBackgroundErase,   dumpPeers,   enableInputMethodsForTextComponent,   executeOnEDTAndWait,   executeOnEventHandlerThread,   executeOnEventHandlerThread,   executeOnEventHandlerThread,   flushPendingEvents,   getBooleanSystemProperty,   getContainingWindow,   getDataTransfererClassName,   getDefaultKeyboardLocale,   getDesktopAAHints,   getDesktopFontHints,   getField,   getFontList,   getFontMetrics,   getFontPeer,   getHeavyweightComponent,   getImage,   getImage,   getImageFromHash,   getImageFromHash,   getMethod,   getMouseInfoPeer,   getNativeContainer,   getNumberOfButtons,   getScaledIconData,   getScaledIconImage,   getScreenHeight,   getScreenSize,   getScreenWidth,   getStartupLocale,   getSunAwtDisableMixing,   getSunAwtErasebackgroundonresize,   getSunAwtNoerasebackground,   getSystemEventQueueImpl,   getSystemEventQueueImplPP,   getSystemEventQueueImplPP,   getSystemProperty,   getWindowClosingListener,   grab,   insertTargetMapping,   invokeLaterOnAppContext,   isAWTLockHeldByCurrentThread,   isContainingTopLevelOpaque,   isContainingTopLevelTranslucent,   isDesktopSupported,   isDispatchThreadForAppContext,   isInstanceOf,   isLightweightOrUnknown,   isModalExcluded,   isModalExcludedSupported,   isModalExcludedSupportedImpl,   isModalExclusionTypeSupported,   isModalityTypeSupported,   isNativeGTKAvailable,   isPostEventQueueEmpty,   isSystemGenerated,   isTranslucencyCapable,   isTraySupported,   isWindowOpacitySupported,   isWindowShapingSupported,   isWindowTranslucencySupported,   isXEmbedServerRequested,   needUpdateWindow,   needsXEmbed,   needsXEmbedImpl,   notifyModalityChange,   notifyModalityPopped,   notifyModalityPushed,   postEvent,   postPriorityEvent,   prepareImage,   realSync,   realSync,   removeModalityListener,   setAAFontSettingsCondition,   setDataTransfererClassName,   setLWRequestStatus,   setModalExcluded,   setSystemGenerated,   setWindowClosingListener,   syncNativeQueue,   targetCreatedPeer,   targetDisposedPeer,   targetToAppContext,   targetToPeer,   ungrab,   useBufferPerWindow,   waitForIdle,   wakeupEventQueue,   windowClosingDelivered,   windowClosingNotify
Methods from java.awt.Toolkit:
access$000,   access$002,   access$102,   addAWTEventListener,   addPropertyChangeListener,   beep,   checkImage,   countAWTEventListeners,   createButton,   createCanvas,   createCheckbox,   createCheckboxMenuItem,   createChoice,   createComponent,   createCustomCursor,   createDesktopPeer,   createDialog,   createDragGestureRecognizer,   createDragSourceContextPeer,   createFileDialog,   createFrame,   createImage,   createImage,   createImage,   createImage,   createImage,   createLabel,   createList,   createMenu,   createMenuBar,   createMenuItem,   createPanel,   createPopupMenu,   createScrollPane,   createScrollbar,   createTextArea,   createTextField,   createWindow,   enabledOnToolkit,   getAWTEventListeners,   getAWTEventListeners,   getBestCursorSize,   getColorModel,   getDefaultToolkit,   getDesktopProperty,   getEventQueue,   getFontList,   getFontMetrics,   getFontPeer,   getImage,   getImage,   getLockingKeyState,   getMaximumCursorColors,   getMenuShortcutKeyMask,   getMouseInfoPeer,   getNativeContainer,   getPrintJob,   getPrintJob,   getProperty,   getPropertyChangeListeners,   getPropertyChangeListeners,   getScreenInsets,   getScreenResolution,   getScreenSize,   getSystemClipboard,   getSystemEventQueue,   getSystemEventQueueImpl,   getSystemSelection,   initializeDesktopProperties,   isAlwaysOnTopSupported,   isDynamicLayoutActive,   isDynamicLayoutSet,   isFrameStateSupported,   isModalExclusionTypeSupported,   isModalityTypeSupported,   lazilyLoadDesktopProperty,   loadLibraries,   loadSystemColors,   mapInputMethodHighlight,   notifyAWTEventListeners,   prepareImage,   removeAWTEventListener,   removePropertyChangeListener,   setDesktopProperty,   setDynamicLayout,   setLockingKeyState,   sync
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.UNIXToolkit Detail:
 public boolean checkGtkVersion(int major,
    int minor,
    int micro) 
    Returns {@code true} if the GTK+ library is compatible with the given version.
 public static int getDatatransferTimeout() 
 protected RenderingHints getDesktopAAHints() 
 public BufferedImage getGTKIcon(String filename) 
    Returns a BufferedImage which contains the Gtk icon requested. If no such icon exists or an error occurs loading the icon the result will be null.
 public BufferedImage getStockIcon(int widgetType,
    String stockId,
    int iconSize,
    int direction,
    String detail) 
    Returns a BufferedImage which contains the Gtk stock icon requested. If no such stock icon exists the result will be null.
 public boolean isNativeGTKAvailable() 
    Returns true if the native GTK libraries are capable of being loaded and are expected to work properly, false otherwise. Note that this method will not leave the native GTK libraries loaded if they haven't already been loaded. This allows, for example, Swing's GTK L&F to test for the presence of native GTK support without leaving the native libraries loaded. To attempt long-term loading of the native GTK libraries, use the loadGTK() method instead.
 protected Object lazilyLoadDesktopProperty(String name) 
    Overridden to handle GTK icon loading
 protected Object lazilyLoadGTKIcon(String longname) 
    Load a native Gtk stock icon.
 public boolean loadGTK() 
    Loads the GTK libraries, if necessary. The first time this method is called, it will attempt to load the native GTK library. If successful, it leaves the library open and returns true; otherwise, the library is left closed and returns false. On future calls to this method, the status of the first attempt is returned (a simple lightweight boolean check, no native calls required).
 public  void loadIconCallback(byte[] data,
    int width,
    int height,
    int rowStride,
    int bps,
    int channels,
    boolean alpha) 
    This method is used by JNI as a callback from load_stock_icon. Image data is passed back to us via this method and loaded into the local BufferedImage and then returned via getStockIcon. Do NOT call this method directly.
 public  void sync()