Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.faces.AbstractFaceQueue Class Referenceabstract

Abstract base class for classes implementing FaceQueue. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.faces.AbstractFaceQueue:
+ Collaboration diagram for com.realtime.crossfire.jxclient.faces.AbstractFaceQueue:

Public Member Functions

void addFaceQueueListener (@NotNull final FaceQueueListener faceQueueListener)
 Adds a FaceQueueListener to be notified about processed faces.
Parameters
faceQueueListenerthe listener to add
More...
 
void removeFaceQueueListener (@NotNull final FaceQueueListener faceQueueListener)
 Removes a FaceQueueListener to be notified about processed faces.
Parameters
faceQueueListenerthe listener to remove
More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.faces.FaceQueue
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< FaceQueueListenerfaceQueueListeners = new EventListenerList2<>()
 The registered FaceQueueListeners. More...
 

Detailed Description

Abstract base class for classes implementing FaceQueue.

This class maintains the FaceQueueListeners; implementing classes need to implement only the actual face loading code.

Author
Andreas Kirschbaum

Definition at line 33 of file AbstractFaceQueue.java.

Member Function Documentation

◆ addFaceQueueListener()

void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.addFaceQueueListener ( @NotNull final FaceQueueListener  faceQueueListener)

Adds a FaceQueueListener to be notified about processed faces.

Parameters
faceQueueListenerthe 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fireFaceFailed()

void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.fireFaceFailed ( @NotNull final Face  face)
protected

◆ fireFaceLoaded()

void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.fireFaceLoaded ( @NotNull final Face  face,
@NotNull final FaceImages  faceImages 
)
protected

Notify all listener with FaceImages).

Parameters
facethe face that has been loaded
faceImagesthe 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().

+ Here is the caller graph for this function:

◆ removeFaceQueueListener()

void com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.removeFaceQueueListener ( @NotNull final FaceQueueListener  faceQueueListener)

Removes a FaceQueueListener to be notified about processed faces.

Parameters
faceQueueListenerthe 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().

+ Here is the call graph for this function:

Member Data Documentation

◆ faceQueueListeners

final EventListenerList2<FaceQueueListener> com.realtime.crossfire.jxclient.faces.AbstractFaceQueue.faceQueueListeners = new EventListenerList2<>()
private

The registered FaceQueueListeners.

Definition at line 39 of file AbstractFaceQueue.java.


The documentation for this class was generated from the following file: