Interface FacesProvider
-
- All Known Implementing Classes:
MagicMapFacesProvider,OriginalFacesProvider,ScaledFacesProvider
public interface FacesProviderInterface for face providers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull javax.swing.ImageIcongetImageIcon(int faceNum, boolean @Nullable [] isUnknownImage)Returns the face for a face ID.intgetSize()Returns the size of faces in pixels.
-
-
-
Method Detail
-
getSize
int getSize()
Returns the size of faces in pixels.- Returns:
- the size in pixels
-
getImageIcon
@NotNull @NotNull javax.swing.ImageIcon getImageIcon(int faceNum, boolean @Nullable [] isUnknownImage)Returns the face for a face ID. This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.- Parameters:
faceNum- the face IDisUnknownImage- returns whether the returned face is the "unknown" face; ignored ifnull- Returns:
- the face, or the "unknown" face if the face is not loaded
-
-