Class ImageRepository
java.lang.Object
com.biglybt.ui.swt.ImageRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Objectprivate static org.eclipse.swt.graphics.Imageprivate static LocationProviderprivate static longprivate static Objectprivate static final booleanGets an image for a file associated with a given programprivate static final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidpublicprivate static org.eclipse.swt.graphics.Imageforce16height(org.eclipse.swt.graphics.Image image) static org.eclipse.swt.graphics.ImagegetCountryFlag(PEPeer peer, boolean small) static org.eclipse.swt.graphics.ImagegetCountryFlag(Peer peer, boolean small) static org.eclipse.swt.graphics.ImagegetCountryFlag(String cc, boolean small) static org.eclipse.swt.graphics.ImagegetCountryFlag(InetAddress address, boolean small) private static LocationProviderstatic org.eclipse.swt.graphics.ImagegetIconFromExtension(File file, String ext, boolean bBig, boolean minifolder) static org.eclipse.swt.graphics.ImagegetPathIcon(String path, boolean bBig, boolean minifolder) Gets an iconic representation of the file or directory at the pathstatic booleanhasCountryFlags(boolean small) static voidprivate static org.eclipse.swt.graphics.Imageminifolderize(String path, org.eclipse.swt.graphics.Image img, boolean big)
-
Field Details
-
noCacheExtList
-
forceNoAWT
private static final boolean forceNoAWT -
ignore_icon_exts
-
flag_provider
-
flag_provider_last_check
private static long flag_provider_last_check -
flag_none
private static org.eclipse.swt.graphics.Image flag_none -
flag_small_key
-
flag_big_key
-
flag_cache
-
net_images
-
-
Constructor Details
-
ImageRepository
public ImageRepository()
-
-
Method Details
-
addPath
-
getIconFromExtension
-
minifolderize
private static org.eclipse.swt.graphics.Image minifolderize(String path, org.eclipse.swt.graphics.Image img, boolean big) -
force16height
private static org.eclipse.swt.graphics.Image force16height(org.eclipse.swt.graphics.Image image) -
getPathIcon
public static org.eclipse.swt.graphics.Image getPathIcon(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
-
getFlagProvider
-
hasCountryFlags
public static boolean hasCountryFlags(boolean small) -
getCountryFlag
-
getCountryFlag
-
getCountryFlag
-
getCountryFlag
-
main
-