Package com.biglybt.ui.swt
Class ImageRepository
java.lang.Object
com.biglybt.ui.swt.ImageRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Object
private static org.eclipse.swt.graphics.Image
private static LocationProvider
private static long
private static Object
private static final boolean
Gets an image for a file associated with a given programprivate static final String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
publicprivate static org.eclipse.swt.graphics.Image
force16height
(org.eclipse.swt.graphics.Image image) static org.eclipse.swt.graphics.Image
getCountryFlag
(PEPeer peer, boolean small) static org.eclipse.swt.graphics.Image
getCountryFlag
(Peer peer, boolean small) static org.eclipse.swt.graphics.Image
getCountryFlag
(String cc, boolean small) static org.eclipse.swt.graphics.Image
getCountryFlag
(InetAddress address, boolean small) private static LocationProvider
static org.eclipse.swt.graphics.Image
getIconFromExtension
(File file, String ext, boolean bBig, boolean minifolder) static org.eclipse.swt.graphics.Image
getPathIcon
(String path, boolean bBig, boolean minifolder) Gets an iconic representation of the file or directory at the pathstatic boolean
hasCountryFlags
(boolean small) static void
private static org.eclipse.swt.graphics.Image
minifolderize
(String path, org.eclipse.swt.graphics.Image img, boolean big)
-
Field Details
-
noCacheExtList
-
forceNoAWT
private static final boolean forceNoAWT -
ignore_icon_exts
Gets an image for a file associated with a given program -
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
public -
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
-