 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.faces;
26 import java.io.IOException;
27 import java.util.concurrent.atomic.AtomicBoolean;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
64 @SuppressWarnings(
"FieldCanBeLocal")
68 public void faceLoaded(@NotNull
final Face face, @NotNull
final FaceImages faceImages) {
69 face.setFaceImages(faceImages);
74 public void faceFailed(@NotNull
final Face face) {
107 if (returnIsUnknownImage !=
null) {
108 returnIsUnknownImage.set(
false);
115 if (faceImages !=
null) {
116 if (returnIsUnknownImage !=
null) {
117 returnIsUnknownImage.set(
false);
123 if (returnIsUnknownImage !=
null) {
124 returnIsUnknownImage.set(
true);
FaceImages getFaceImages()
Returns the images.
static final String UNKNOWN_PNG
The resource name of the "unknown" face.
A cache for Face instances.
final FaceImages emptyFaceImages
The empty face; returned for face ID 0.
void reset()
Forgets about pending faces.
Retrieves Face information by face ID.
static ImageIcon loadImage(@NotNull final String name)
Loads an image file.
DefaultFacesManager(@NotNull final FaceCache faceCache, @NotNull final FaceQueue faceQueue)
Creates a new instance.
void fireFaceUpdated(@NotNull final Face face)
Notifies all FacesManagerListeners that a face has been updated.
Utility class for creating FaceImages instances.
final FaceQueue faceQueue
The FaceQueue instance used to load faces not present in-memory.
void reset()
Reset the processing: forget about pending faces.
static FaceImages newFaceImages(@NotNull final ImageIcon originalImageIcon)
Creates a new FaceImages instance from an "original" face; the "scaled" and "magic map" sized images ...
Interface for listeners interested in FaceQueue events.
Consists of three ImageIcons representing a Face.
Interface for classes implementing a means to load Faces.
final FaceCache faceCache
The FaceCache instance used to look up in-memory faces.
void loadFace(@NotNull Face face)
Request a face.
Abstract base class for FacesManager implementations.
static FaceImages newEmptyFaceImages()
Creates a new FaceImages instance consisting of empty images.
FaceImages getFaceImages(final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
Returns the FaceImages information for a face ID.
void addFaceQueueListener(@NotNull FaceQueueListener faceQueueListener)
Adds a FaceQueueListener to be notified about processed faces.
final FaceImages unknownFaceImages
The unknown face.
Face lookupFace(final int faceNum)
Returns the Face instance for a given face ID.
Utility class for loading information from resources.
final FaceQueueListener faceQueueListener
The FaceQueueListener registered to faceQueue.