Package net.sf.gridarta.model.face
Class EmptyFaceProvider
- java.lang.Object
-
- net.sf.gridarta.model.face.EmptyFaceProvider
-
- All Implemented Interfaces:
FaceProvider
public class EmptyFaceProvider extends java.lang.Object implements FaceProvider
AFaceProviderthat does not return any faces.
-
-
Constructor Summary
Constructors Constructor Description EmptyFaceProvider()
-
Method Summary
All Methods Instance Methods Concrete 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 public @Nullable javax.swing.ImageIcon getImageIconForFacename(@NotNull @NotNull java.lang.String faceName, long stretch)Description copied from interface:FaceProviderGet an image from this FaceProvider.- Specified by:
getImageIconForFacenamein interfaceFaceProvider- Parameters:
faceName- face name to get image for, excluding path and ending- Returns:
- icon for faceName
-
reload
public void reload()
Description copied from interface:FaceProviderReload 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.- Specified by:
reloadin interfaceFaceProvider
-
-