Interface FacesProvider

All Known Implementing Classes:
MagicMapFacesProvider, OriginalFacesProvider, ScaledFacesProvider

public interface FacesProvider
Interface for face providers.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull ImageIcon
    getImageIcon(int faceNum, @Nullable AtomicBoolean returnIsUnknownImage)
    Returns the face for a face ID.
    int
    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 ID
      returnIsUnknownImage - returns whether the returned face is the "unknown" face; ignored if null
      Returns:
      the face, or the "unknown" face if the face is not loaded