|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.swt.ImageRepository
public class ImageRepository
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 |
---|
public ImageRepository()
Method Detail |
---|
public static org.eclipse.swt.graphics.Image getImage(java.lang.String name)
ImageLoader.getImage(String)
public static org.eclipse.swt.graphics.Image getIconFromExtension(java.io.File file, java.lang.String ext, boolean bBig, boolean minifolder)
program
- the Programpublic 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.
path
- Absolute path to the file or directory
public static boolean hasCountryFlags(boolean small)
public static org.eclipse.swt.graphics.Image getCountryFlag(Peer peer, boolean small)
public static org.eclipse.swt.graphics.Image getCountryFlag(PEPeer peer, boolean small)
public static org.eclipse.swt.graphics.Image getCountryFlag(java.net.InetAddress address, boolean small)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |