Class AbstractFaceQueue
- java.lang.Object
-
- com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
-
- All Implemented Interfaces:
FaceQueue
- Direct Known Subclasses:
AskfaceFaceQueue,FacesQueue,FileCacheFaceQueue
public abstract class AbstractFaceQueue extends java.lang.Object implements FaceQueue
Abstract base class for classes implementingFaceQueue. This class maintains theFaceQueueListeners; implementing classes need to implement only the actual face loading code.
-
-
Constructor Summary
Constructors Constructor Description AbstractFaceQueue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFaceQueueListener(@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.
-
-
-
Method Detail
-
addFaceQueueListener
public void addFaceQueueListener(@NotNull @NotNull FaceQueueListener faceQueueListener)Description copied from interface:FaceQueueAdds aFaceQueueListenerto be notified about processed faces.- Specified by:
addFaceQueueListenerin interfaceFaceQueue- Parameters:
faceQueueListener- the listener to add
-
removeFaceQueueListener
public void removeFaceQueueListener(@NotNull @NotNull FaceQueueListener faceQueueListener)Description copied from interface:FaceQueueRemoves aFaceQueueListenerto be notified about processed faces.- Specified by:
removeFaceQueueListenerin interfaceFaceQueue- Parameters:
faceQueueListener- the listener to remove
-
fireFaceLoaded
protected void fireFaceLoaded(@NotNull @NotNull Face face, @NotNull @NotNull FaceImages faceImages)Notify all listener withFaceQueueListener.faceLoaded(Face, FaceImages).- Parameters:
face- the face that has been loadedfaceImages- the face images instance that has been loaded
-
fireFaceFailed
protected void fireFaceFailed(@NotNull @NotNull Face face)Notify all listener withFaceQueueListener.faceFailed(Face).- Parameters:
face- the face that has failed to load
-
-