Crossfire JXClient, Trunk
R20561
|
Abstract base class for classes implementing FaceQueue. More...
Public Member Functions | |||
void | addFaceQueueListener (@NotNull final FaceQueueListener faceQueueListener) | ||
Adds a FaceQueueListener to be notified about processed faces.
| |||
void | removeFaceQueueListener (@NotNull final FaceQueueListener faceQueueListener) | ||
Removes a FaceQueueListener to be notified about processed faces.
| |||
![]() | |||
void | loadFace (@NotNull Face face) | ||
Request a face. More... | |||
void | reset () | ||
Reset the processing: forget about pending faces. More... | |||
Protected Member Functions | |
void | fireFaceFailed (@NotNull final Face face) |
Notify all listener with FaceQueueListener#faceFailed(Face). More... | |
void | fireFaceLoaded (@NotNull final Face face, @NotNull final FaceImages faceImages) |
Notify all listener with FaceImages). More... | |
Private Attributes | |
final EventListenerList2< FaceQueueListener > | faceQueueListeners = new EventListenerList2<>() |
The registered FaceQueueListeners. More... | |
Abstract base class for classes implementing FaceQueue.
This class maintains the FaceQueueListeners; implementing classes need to implement only the actual face loading code.
Definition at line 33 of file AbstractFaceQueue.java.
void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.addFaceQueueListener | ( | @NotNull final FaceQueueListener | faceQueueListener | ) |
Adds a FaceQueueListener to be notified about processed faces.
faceQueueListener | the listener to add |
Implements com.realtime.crossfire.jxclient.faces.FaceQueue.
Definition at line 45 of file AbstractFaceQueue.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.add().
Referenced by com.realtime.crossfire.jxclient.faces.FacesQueue.FacesQueue().
|
protected |
Notify all listener with FaceQueueListener#faceFailed(Face).
face | the face that has failed to load |
Definition at line 73 of file AbstractFaceQueue.java.
Referenced by com.realtime.crossfire.jxclient.faces.AskfaceFaceQueue.loadFace(), com.realtime.crossfire.jxclient.faces.AskfaceFaceQueue.processFaceData(), and com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.LoadTask.run().
|
protected |
Notify all listener with FaceImages).
face | the face that has been loaded |
faceImages | the face images instance that has been loaded |
Definition at line 63 of file AbstractFaceQueue.java.
Referenced by com.realtime.crossfire.jxclient.faces.AskfaceFaceQueue.processFaceData(), and com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue.LoadTask.run().
void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.removeFaceQueueListener | ( | @NotNull final FaceQueueListener | faceQueueListener | ) |
Removes a FaceQueueListener to be notified about processed faces.
faceQueueListener | the listener to remove |
Implements com.realtime.crossfire.jxclient.faces.FaceQueue.
Definition at line 53 of file AbstractFaceQueue.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.remove().
|
private |
The registered FaceQueueListeners.
Definition at line 39 of file AbstractFaceQueue.java.