Crossfire JXClient, Trunk  R20561
Package com.realtime.crossfire.jxclient.faces

Manages image information ("faces") needed to display the map view, items, and spell icons. More...

Classes

class  AbstractFaceQueue
 Abstract base class for classes implementing FaceQueue. More...
 
class  AbstractFacesManager
 Abstract base class for FacesManager implementations. More...
 
class  AskfaceFaceQueue
 A FaceQueue requesting faces by "askface" commands sent to the Crossfire server. More...
 
interface  AskfaceQueue
 Interface for classes that allow sending "askface" commands. More...
 
class  DefaultFacesManager
 Retrieves Face information by face ID. More...
 
class  Face
 A. More...
 
class  FaceCache
 A cache for Face instances. More...
 
class  FaceImages
 Consists of three ImageIcons representing a Face. More...
 
class  FaceImagesUtils
 Utility class for creating FaceImages instances. More...
 
interface  FaceQueue
 Interface for classes implementing a means to load Faces. More...
 
interface  FaceQueueListener
 Interface for listeners interested in FaceQueue events. More...
 
interface  FacesManager
 Maintains a mapping of face numbers to face data. More...
 
interface  FacesManagerListener
 Interface for listeners interested in FacesManager events. More...
 
interface  FacesProvider
 Interface for face providers. More...
 
class  FacesProviderFactory
 A factory for creating FacesProvider instances. More...
 
class  FacesQueue
 The main FaceQueue for loading faces. More...
 
class  FileCache
 A disk based cache for image files. More...
 
class  FileCacheFaceQueue
 A FaceQueue loading faces from ImageCache instances. More...
 
interface  ImageCache
 Interface for ImageIcon caching classes. More...
 
class  ImageScale2x
 A utility to perform the scale2x algorithm on a Java Image. More...
 
class  ImageScale8d
 A utility to scale down an image by 8 in both dimensions. More...
 
class  MagicMapFacesProvider
 A FacesProvider that returns faces scaled to 4x4 pixels. More...
 
class  OriginalFacesProvider
 A FacesProvider that returns faces scaled to 64x64 pixels. More...
 
class  RawScale2x
 A simple implementation of the Scale2x algorithm for scaling raw image data. More...
 
class  RawScale8d
 Scales down a raw image to an eighth in both dimensions. More...
 
class  ScaledFacesProvider
 A FacesProvider that returns faces scaled to 64x64 pixels. More...
 
class  SmoothFaces
 Maintains smoothing information received from the Crossfire server. More...
 
class  TestFacesManager
 A FacesManager for regression tests. More...
 

Detailed Description

Manages image information ("faces") needed to display the map view, items, and spell icons.

The main class is com.realtime.crossfire.jxclient.faces.FacesManager; it delegates to a com.realtime.crossfire.jxclient.faces.FaceCache instance for caching the face information. The faces are stored in SoftReferences so they can be reclaimed by the garbage collector.

If a face is not available, an "unknown" (question mark) face is returned and the face is requested through a com.realtime.crossfire.jxclient.faces.FacesQueue instance.