22 package com.realtime.crossfire.jxclient.faces;
24 import javax.swing.ImageIcon;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
37 private static final int SIZE = 32;
66 public ImageIcon
getImageIcon(
final int faceNum, @Nullable
final boolean[] isUnknownImage) {
final FacesManager facesManager
The FacesManager to query.
ImageIcon getOriginalImageIcon(int faceNum, @Nullable boolean[] isUnknownImage)
Returns the "original" face for a face ID.
ImageIcon getImageIcon(final int faceNum, @Nullable final boolean[] isUnknownImage)
Returns the face for a face ID.This function returns immediately even if the face is not loaded...
static final int SIZE
The size of faces in pixels.
OriginalFacesProvider(@NotNull final FacesManager facesManager)
Creates a new instance.
Interface for face providers.
int getSize()
Returns the size of faces in pixels.the size in pixels
A FacesProvider that returns faces scaled to 64x64 pixels.
Maintains a mapping of face numbers to face data.