X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FBasicSupportImages.java;h=69a7c86720002b18c36bd2a4a79ee72353984429;hp=85b79c754ec692f6b0a58c8039051c98c243ddb9;hb=8d59ce0748baeeea0458bab49716ab4543aae439;hpb=75919f2da8b8cd87f5f9d237989410499f7bb98d diff --git a/src/be/nikiroo/fanfix/supported/BasicSupportImages.java b/src/be/nikiroo/fanfix/supported/BasicSupportImages.java index 85b79c7..69a7c86 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupportImages.java +++ b/src/be/nikiroo/fanfix/supported/BasicSupportImages.java @@ -9,6 +9,12 @@ import java.net.URL; import be.nikiroo.fanfix.Instance; import be.nikiroo.utils.Image; +/** + * Helper class for {@link BasicSupport}, mostly dedicated to images for + * the classes that implement {@link BasicSupport}. + * + * @author niki + */ public class BasicSupportImages { /** * Check if the given resource can be a local image or a remote image, then @@ -22,7 +28,7 @@ public class BasicSupportImages { * @return the image if found, or NULL * */ - static Image getImage(BasicSupport support, File dir, String line) { + public Image getImage(BasicSupport support, File dir, String line) { URL url = getImageUrl(support, dir, line); if (url != null) { if ("file".equals(url.getProtocol())) { @@ -60,7 +66,7 @@ public class BasicSupportImages { * @return the image URL if found, or NULL * */ - static URL getImageUrl(BasicSupport support, File dir, String line) { + public URL getImageUrl(BasicSupport support, File dir, String line) { URL url = null; if (line != null) { @@ -151,7 +157,7 @@ public class BasicSupportImages { * * @return the extensions */ - static String[] getImageExt(boolean emptyAllowed) { + public String[] getImageExt(boolean emptyAllowed) { if (emptyAllowed) { return new String[] { "", ".png", ".jpg", ".jpeg", ".gif", ".bmp" }; }