org.gudy.azureus2.ui.swt
Class ImageRepository

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.ImageRepository

public class ImageRepository
extends java.lang.Object

Author:
Olivier

Constructor Summary
ImageRepository()
           
 
Method Summary
static org.eclipse.swt.graphics.Image getCountryFlag(java.net.InetAddress address, boolean small)
           
static org.eclipse.swt.graphics.Image getCountryFlag(Peer peer, boolean small)
           
static org.eclipse.swt.graphics.Image getCountryFlag(PEPeer peer, boolean small)
           
static org.eclipse.swt.graphics.Image getIconFromExtension(java.io.File file, java.lang.String ext, boolean bBig, boolean minifolder)
          Gets an image for a file associated with a given program
static org.eclipse.swt.graphics.Image getImage(java.lang.String name)
          Deprecated. Use ImageLoader.getImage(String)
static org.eclipse.swt.graphics.Image getPathIcon(java.lang.String path, boolean bBig, boolean minifolder)
          Gets an iconic representation of the file or directory at the path
static boolean hasCountryFlags(boolean small)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageRepository

public ImageRepository()
Method Detail

getImage

public static org.eclipse.swt.graphics.Image getImage(java.lang.String name)
Deprecated. Use ImageLoader.getImage(String)


getIconFromExtension

public static org.eclipse.swt.graphics.Image getIconFromExtension(java.io.File file,
                                                                  java.lang.String ext,
                                                                  boolean bBig,
                                                                  boolean minifolder)
Gets an image for a file associated with a given program

Parameters:
program - the Program

getPathIcon

public static org.eclipse.swt.graphics.Image getPathIcon(java.lang.String path,
                                                         boolean bBig,
                                                         boolean minifolder)

Gets an iconic representation of the file or directory at the path

For most platforms, the icon is a 16x16 image; weak-referencing caching is used to avoid abundant reallocation.

Parameters:
path - Absolute path to the file or directory
Returns:
The image

hasCountryFlags

public static boolean hasCountryFlags(boolean small)

getCountryFlag

public static org.eclipse.swt.graphics.Image getCountryFlag(Peer peer,
                                                            boolean small)

getCountryFlag

public static org.eclipse.swt.graphics.Image getCountryFlag(PEPeer peer,
                                                            boolean small)

getCountryFlag

public static org.eclipse.swt.graphics.Image getCountryFlag(java.net.InetAddress address,
                                                            boolean small)

main

public static void main(java.lang.String[] args)