1 package com.loribel.commons.abstraction;
2
3 import javax.swing.*;
4
5 /***
6 * Factory to load images.
7 */
8 public interface GB_ImagesFactory
9 {
10 /***
11 * Add a loader to the factory.
12 *
13 * @param a_classLoader Class - a class that will serve to load images
14 * @param a_path String - path to load images
15 */
16 void addLoader(
17 Class a_classLoader,
18 String a_path);
19
20 /***
21 * Gets the Image icon according to the relative filename of image.
22 */
23 ImageIcon get(
24 String a_imageName);
25
26 /***
27 * Gets the relative filename of image if image has already been loaded.
28 */
29 String getName(
30 Icon a_icon);
31 }