Class AbstractFaceQueue
java.lang.Object
com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
- All Implemented Interfaces:
FaceQueue
- Direct Known Subclasses:
AskfaceFaceQueue,FacesQueue,FileCacheFaceQueue
Abstract base class for classes implementing
FaceQueue. This class
maintains the FaceQueueListeners; implementing
classes need to implement only the actual face loading code.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFaceQueueListener(@NotNull FaceQueueListener faceQueueListener) Adds aFaceQueueListenerto be notified about processed faces.protected voidfireFaceFailed(@NotNull Face face) Notify all listener withFaceQueueListener.faceFailed(Face).protected voidfireFaceLoaded(@NotNull Face face, @NotNull FaceImages faceImages) Notify all listener withFaceQueueListener.faceLoaded(Face, FaceImages).voidremoveFaceQueueListener(@NotNull FaceQueueListener faceQueueListener) Removes aFaceQueueListenerto be notified about processed faces.
-
Constructor Details
-
AbstractFaceQueue
public AbstractFaceQueue()
-
-
Method Details
-
addFaceQueueListener
Description copied from interface:FaceQueueAdds aFaceQueueListenerto be notified about processed faces.- Specified by:
addFaceQueueListenerin interfaceFaceQueue- Parameters:
faceQueueListener- the listener to add
-
removeFaceQueueListener
Description copied from interface:FaceQueueRemoves aFaceQueueListenerto be notified about processed faces.- Specified by:
removeFaceQueueListenerin interfaceFaceQueue- Parameters:
faceQueueListener- the listener to remove
-
fireFaceLoaded
Notify all listener withFaceQueueListener.faceLoaded(Face, FaceImages).- Parameters:
face- the face that has been loadedfaceImages- the face images instance that has been loaded
-
fireFaceFailed
Notify all listener withFaceQueueListener.faceFailed(Face).- Parameters:
face- the face that has failed to load
-