org.gnu.gtk
Class IconTheme

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.IconTheme

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.IconTheme. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

public class IconTheme
extends org.gnu.glib.GObject


Constructor Summary
IconTheme()
          Deprecated.  
 
Method Summary
static void addBuiltinIcon(java.lang.String name, int size, Pixbuf pixbuf)
          Deprecated.  
 void appendSearchPath(java.lang.String path)
          Deprecated.  
static IconTheme getDefault()
          Deprecated.  
static IconTheme getForSceen(Screen screen)
          Deprecated.  
 IconSize[] getIconSizes(java.lang.String iconName)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 java.lang.String[] getSearchPath()
          Deprecated.  
 boolean hasIcon(java.lang.String iconName)
          Deprecated.  
 java.lang.String[] listIcons(java.lang.String context)
          Deprecated.  
 Pixbuf loadIcon(java.lang.String name, int size, IconLookupFlags flags)
          Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
 IconInfo lookupIcon(java.lang.String name, int size, IconLookupFlags flags)
          Deprecated.  
 void prependSearchPath(java.lang.String path)
          Deprecated.  
 boolean rescanIfNeeded()
          Deprecated.  
 void setCustomtTheme(java.lang.String name)
          Deprecated.  
 void setScreen(Screen screen)
          Deprecated.  
 void setSearchPath(java.lang.String[] path)
          Deprecated.  
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconTheme

public IconTheme()
Deprecated. 
Method Detail

getDefault

public static IconTheme getDefault()
Deprecated. 

getForSceen

public static IconTheme getForSceen(Screen screen)
Deprecated. 

setScreen

public void setScreen(Screen screen)
Deprecated. 

setSearchPath

public void setSearchPath(java.lang.String[] path)
Deprecated. 

getSearchPath

public java.lang.String[] getSearchPath()
Deprecated. 

appendSearchPath

public void appendSearchPath(java.lang.String path)
Deprecated. 

prependSearchPath

public void prependSearchPath(java.lang.String path)
Deprecated. 

setCustomtTheme

public void setCustomtTheme(java.lang.String name)
Deprecated. 

hasIcon

public boolean hasIcon(java.lang.String iconName)
Deprecated. 

lookupIcon

public IconInfo lookupIcon(java.lang.String name,
                           int size,
                           IconLookupFlags flags)
Deprecated. 

loadIcon

public Pixbuf loadIcon(java.lang.String name,
                       int size,
                       IconLookupFlags flags)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Looks up an icon in an icon theme, scales it to the given size and renders it into a pixbuf.

Parameters:
name -
size -
flags -
Returns:
The rendered pixbuf, or null if the icon is not found.

listIcons

public java.lang.String[] listIcons(java.lang.String context)
Deprecated. 

rescanIfNeeded

public boolean rescanIfNeeded()
Deprecated. 

addBuiltinIcon

public static void addBuiltinIcon(java.lang.String name,
                                  int size,
                                  Pixbuf pixbuf)
Deprecated. 

getIconSizes

public IconSize[] getIconSizes(java.lang.String iconName)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns an array of IconSize describing the sizes at which the icon is available without scaling. A size of -1 means that the icon is available in a scalable format.