| sun.awt.UNIXToolkit
All known Subclasses: sun.awt.X11.XToolkit, sun.awt.motif.MToolkit,
UNIXToolkit | abstract public class UNIXToolkit extends SunToolkit (Code) | | |
Method Summary | |
public static int | getDatatransferTimeout() | protected RenderingHints | getDesktopAAHints() | public BufferedImage | getGTKIcon(String filename) Returns a BufferedImage which contains the Gtk icon requested. | public BufferedImage | getStockIcon(int widgetType, String stockId, int iconSize, int direction, String detail) Returns a BufferedImage which contains the Gtk stock icon requested. | public boolean | isNativeGTKAvailable() Returns true if the native GTK libraries are capable of being
loaded and are expected to work properly, false otherwise. | protected Object | lazilyLoadDesktopProperty(String name) | protected Object | lazilyLoadGTKIcon(String longname) Load a native Gtk stock icon. | public boolean | loadGTK() Loads the GTK libraries, if necessary. | 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. | public void | sync() |
FONTCONFIGAAHINT | final public static String FONTCONFIGAAHINT(Code) | | |
GTK_LOCK | final public static Object GTK_LOCK(Code) | | All calls into GTK should be synchronized on this lock
|
getDatatransferTimeout | public static int getDatatransferTimeout()(Code) | | |
getGTKIcon | public BufferedImage getGTKIcon(String filename)(Code) | | 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.
Parameters: filename - The icon or null if it was not found or loaded. |
getStockIcon | public BufferedImage getStockIcon(int widgetType, String stockId, int iconSize, int direction, String detail)(Code) | | Returns a BufferedImage which contains the Gtk stock icon requested.
If no such stock icon exists the result will be null.
Parameters: widgetType - one of WidgetType values defined in GTKNativeEngine or-1 for system default stock icon. Parameters: stockId - String which defines the stock id of the gtk item.For a complete list reference the API at www.gtk.org for StockItems. Parameters: iconSize - One of the GtkIconSize values defined in GTKConstants Parameters: textDirection - One of the TextDirection values defined inGTKConstants Parameters: detail - Render detail that is passed to the native engine (feelfree to pass null) The stock icon or null if it was not found or loaded. |
isNativeGTKAvailable | public boolean isNativeGTKAvailable()(Code) | | 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.
|
lazilyLoadDesktopProperty | protected Object lazilyLoadDesktopProperty(String name)(Code) | | Overridden to handle GTK icon loading
|
lazilyLoadGTKIcon | protected Object lazilyLoadGTKIcon(String longname)(Code) | | Load a native Gtk stock icon.
Parameters: longname - a desktop property name. This contains icon name, sizeand orientation, e.g. "gtk.icon.gtk-add.4.rtl" an Image for the icon, or null if theicon could not be loaded |
loadGTK | public boolean loadGTK()(Code) | | 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).
|
loadIconCallback | public void loadIconCallback(byte[] data, int width, int height, int rowStride, int bps, int channels, boolean alpha)(Code) | | 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.
|
|
|