Interface FacesProvider
- All Known Implementing Classes:
MagicMapFacesProvider,OriginalFacesProvider,ScaledFacesProvider
public interface FacesProvider
Interface for face providers.
-
Method Summary
Modifier and TypeMethodDescription@NotNull ImageIcongetImageIcon(int faceNum, @Nullable AtomicBoolean returnIsUnknownImage) Returns the face for a face ID.intgetSize()Returns the size of faces in pixels.
-
Method Details
-
getSize
int getSize()Returns the size of faces in pixels.- Returns:
- the size in pixels
-
getImageIcon
@NotNull @NotNull ImageIcon getImageIcon(int faceNum, @Nullable @Nullable AtomicBoolean returnIsUnknownImage) 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 IDreturnIsUnknownImage- returns whether the returned face is the "unknown" face; ignored ifnull- Returns:
- the face, or the "unknown" face if the face is not loaded
-