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
* @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())) {
* @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) {
*
* @return the extensions
*/
- static String[] getImageExt(boolean emptyAllowed) {
+ public String[] getImageExt(boolean emptyAllowed) {
if (emptyAllowed) {
return new String[] { "", ".png", ".jpg", ".jpeg", ".gif", ".bmp" };
}