java.lang.Object com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
public abstract class AbstractFaceQueue
Abstract base class for classes implementing FaceQueue
. This class
maintains the FaceQueueListener
s; implementing classes need to
implement only the actual face loading code.
Field Summary | |
---|---|
private java.util.Collection<FaceQueueListener> |
faceQueueListeners
The registered FaceQueueListener s. |
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
FaceQueueListener
s.
Constructor Detail |
---|
public AbstractFaceQueue()
Method Detail |
---|
public void addFaceQueueListener(@NotNull FaceQueueListener faceQueueListener)
FaceQueueListener
to be notified about processed faces.
addFaceQueueListener
in interface FaceQueue
faceQueueListener
- the listener to addprotected void fireFaceFailed(@NotNull Face face)
FaceQueueListener.faceFailed(Face)
.
face
- the face that has failed to loadprotected 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 loadedpublic void removeFaceQueueListener(@NotNull FaceQueueListener faceQueueListener)
FaceQueueListener
to be notified about processed
faces.
removeFaceQueueListener
in interface FaceQueue
faceQueueListener
- the listener to remove