java.lang.Objectcom.realtime.crossfire.jxclient.faces.AbstractFaceQueue
public abstract class AbstractFaceQueue
Abstract base class for classes implementing FaceQueue. This class
maintains the FaceQueueListeners; implementing classes need to
implement only the actual face loading code.
| Field Summary | |
|---|---|
private java.util.Collection<FaceQueueListener> |
faceQueueListeners
The registered FaceQueueListeners. |
| Constructor Summary | |
|---|---|
AbstractFaceQueue()
|
|
| Method Summary | |
|---|---|
void |
addFaceQueueListener(FaceQueueListener faceQueueListener)
Adds a FaceQueueListener to be notified about processed faces. |
protected void |
fireFaceFailed(Face face)
Notify all listener with FaceQueueListener.faceFailed(Face). |
protected void |
fireFaceLoaded(Face face,
FaceImages faceImages)
Notify all listener with FaceQueueListener.faceLoaded(Face,
FaceImages). |
void |
removeFaceQueueListener(FaceQueueListener faceQueueListener)
Removes a FaceQueueListener to be notified about processed
faces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.realtime.crossfire.jxclient.faces.FaceQueue |
|---|
loadFace, reset |
| Field Detail |
|---|
@NotNull private final java.util.Collection<FaceQueueListener> faceQueueListeners
FaceQueueListeners.
| Constructor Detail |
|---|
public AbstractFaceQueue()
| Method Detail |
|---|
public void addFaceQueueListener(@NotNull
FaceQueueListener faceQueueListener)
FaceQueueListener to be notified about processed faces.
addFaceQueueListener in interface FaceQueuefaceQueueListener - the listener to add
protected void fireFaceFailed(@NotNull
Face face)
FaceQueueListener.faceFailed(Face).
face - the face that has failed to load
protected void fireFaceLoaded(@NotNull
Face face,
@NotNull
FaceImages faceImages)
FaceQueueListener.faceLoaded(Face,
FaceImages).
face - the face that has been loadedfaceImages - the face images instance that has been loaded
public void removeFaceQueueListener(@NotNull
FaceQueueListener faceQueueListener)
FaceQueueListener to be notified about processed
faces.
removeFaceQueueListener in interface FaceQueuefaceQueueListener - the listener to remove