Package net.sf.gridarta.model.face
Interface FaceProvider
-
- All Known Implementing Classes:
AbstractFaceProvider,ArchFaceProvider,CollectedFaceProvider,EmptyFaceProvider,FilterFaceProvider
public interface FaceProviderThis interface represents a lazy loader that provides images on demand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable javax.swing.ImageIcongetImageIconForFacename(@NotNull java.lang.String faceName, long stretch)Get an image from this FaceProvider.voidreload()Reload faces.
-
-
-
Method Detail
-
getImageIconForFacename
@Nullable @Nullable javax.swing.ImageIcon getImageIconForFacename(@NotNull @NotNull java.lang.String faceName, long stretch)Get an image from this FaceProvider.- Parameters:
faceName- face name to get image for, excluding path and ending- Returns:
- icon for faceName
-
reload
void reload()
Reload faces. This method does not really immediately reload all faces, lazy loading is allowed. But all old face information definitely is flushed, so in case the files on hard disk have changed, they will be freshly loaded from hard disk.
-
-