22 package com.realtime.crossfire.jxclient.faces;
24 import org.jetbrains.annotations.NotNull;
52 @SuppressWarnings(
"FieldCanBeLocal")
56 public void faceLoaded(@NotNull
final Face face, @NotNull
final FaceImages faceImages) {
61 public void faceFailed(@NotNull
final Face face) {
71 @SuppressWarnings(
"FieldCanBeLocal")
75 public void faceLoaded(@NotNull
final Face face, @NotNull
final FaceImages faceImages) {
77 fileCacheFaceQueue.
saveFace(face, faceImages);
81 public void faceFailed(@NotNull
final Face face) {
void reset()
Reset the processing: forget about pending faces.This function is called whenever the server socket b...
void saveFace(@NotNull final Face face, @NotNull final FaceImages faceImages)
Saves a face to the caches.
void reset()
Reset the processing: forget about pending faces.This function is called whenever the server socket b...
final FileCacheFaceQueue fileCacheFaceQueue
The FileCacheFaceQueue instance used to load faces from the file cache.
Interface for classes implementing a means to load Faces.
void loadFace(@NotNull Face face)
Request a face.
final FaceQueue faceQueue
The FaceQueue instance used to query faces from the Crossfire server.
Interface for ImageIcon caching classes.
The main FaceQueue for loading faces.
Consists of three ImageIcons representing a Face.
void fireFaceLoaded(@NotNull final Face face, @NotNull final FaceImages faceImages)
Notify all listener with FaceImages).
Abstract base class for classes implementing FaceQueue.
void reset()
Reset the processing: forget about pending faces.
void fireFaceFailed(@NotNull final Face face)
Notify all listener with FaceQueueListener#faceFailed(Face).
FacesQueue(@NotNull final FaceQueue faceQueue, @NotNull final ImageCache imageCacheOriginal, @NotNull final ImageCache imageCacheScaled, @NotNull final ImageCache imageCacheMagicMap)
Creates a new instance.
void addFaceQueueListener(@NotNull final FaceQueueListener faceQueueListener)
Adds a FaceQueueListener to be notified about processed faces.the listener to add ...
Interface for listeners interested in FaceQueue events.
void loadFace(@NotNull final Face face)
Request a face.Must eventually call either FaceQueueListener#faceLoaded(Face, FaceImages) or FaceQueu...
final FaceQueueListener fileCacheFaceQueueListener
The FaceQueueListener attached to fileCacheFaceQueue.
final FaceQueueListener askfaceFaceQueueListener
The FaceQueueListener attached to faceQueue.
void loadFace(@NotNull final Face face)
Request a face.Must eventually call either FaceQueueListener#faceLoaded(Face, FaceImages) or FaceQueu...
A FaceQueue loading faces from ImageCache instances.