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 = 64;
66 public ImageIcon
getImageIcon(
final int faceNum, @Nullable
final boolean[] isUnknownImage) {
ScaledFacesProvider(@NotNull final FacesManager facesManager)
Creates a new instance.
ImageIcon getScaledImageIcon(int faceNum, @Nullable boolean[] isUnknownImage)
Returns the "scaled" face for a face ID.
Interface for face providers.
static final int SIZE
The size of faces in pixels.
A FacesProvider that returns faces scaled to 64x64 pixels.
final FacesManager facesManager
The FacesManager to query.
int getSize()
Returns the size of faces in pixels.the size in pixels
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...
Maintains a mapping of face numbers to face data.