Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.faces.TestFacesManager Class Reference

A FacesManager for regression tests. More...

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

Public Member Functions

 TestFacesManager (@NotNull final FaceCache faceCache)
 Creates a new instance. More...
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.faces.AbstractFacesManager
void addFacesManagerListener (@NotNull final FacesManagerListener facesManagerListener)
 Adds a FacesManagerListener to be notified about updated faces.
Parameters
facesManagerListenerthe listener
More...
 
Face getFace (final int faceNum)
 Returns the Face instance for a given face ID.Requests the face face from the server if necessary.

Parameters
faceNumthe face ID to request
Returns
the face
More...
 
Face getFace2 (final int faceNum)
 Returns the Face instance for a given face ID.Requests the face from the server if necessary.

Parameters
faceNumthe face ID to request
Returns
the face or
null
for the empty face
More...
 
ImageIcon getMagicMapImageIcon (final int faceNum, @Nullable final boolean[] isUnknownImage)
 Returns the "magic map" face for a face ID.This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.

Parameters
faceNumthe face ID
isUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face, or the "unknown" face if the face is not loaded
More...
 
ImageIcon getOriginalImageIcon (final int faceNum, @Nullable final boolean[] isUnknownImage)
 Returns the "original" face for a face ID.This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.

Parameters
faceNumthe face ID
isUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face, or the "unknown" face if the face is not loaded
More...
 
ImageIcon getScaledImageIcon (final int faceNum, @Nullable final boolean[] isUnknownImage)
 Returns the "scaled" face for a face ID.This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.

Parameters
faceNumthe face ID
isUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face, or the "unknown" face if the face is not loaded
More...
 
void removeFacesManagerListener (@NotNull final FacesManagerListener facesManagerListener)
 Removes a FacesManagerListener to be notified about updated faces.
Parameters
facesManagerListenerthe listener
More...
 
void reset ()
 Forgets about pending faces. More...
 

Protected Member Functions

FaceImages getFaceImages (final int faceNum, @Nullable final boolean[] isUnknownImage)
 
- Protected Member Functions inherited from com.realtime.crossfire.jxclient.faces.AbstractFacesManager
 AbstractFacesManager (@NotNull final FaceCache faceCache)
 Creates a new instance. More...
 
void fireFaceUpdated (@NotNull final Face face)
 Notifies all FacesManagerListeners that a face has been updated. More...
 
abstract FaceImages getFaceImages (final int faceNum, @Nullable boolean[] isUnknownImage)
 Returns the FaceImages information for a face ID. More...
 
Face lookupFace (final int faceNum)
 Returns the Face instance for a given face ID. More...
 

Detailed Description

A FacesManager for regression tests.

Author
Andreas Kirschbaum

Definition at line 32 of file TestFacesManager.java.

Constructor & Destructor Documentation

◆ TestFacesManager()

com.realtime.crossfire.jxclient.faces.TestFacesManager.TestFacesManager ( @NotNull final FaceCache  faceCache)

Creates a new instance.

Parameters
faceCachethe face cache instance for storing in-memory faces

Definition at line 38 of file TestFacesManager.java.

Member Function Documentation

◆ getFaceImages()

FaceImages com.realtime.crossfire.jxclient.faces.TestFacesManager.getFaceImages ( final int  faceNum,
@Nullable final boolean []  isUnknownImage 
)
protected

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