Package com.realtime.crossfire.jxclient.faces
Manages image information ("faces") needed to display the map view, items,
and spell icons. The main class is
FacesManager;
it delegates to a 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 FacesQueue
instance.
-
Interface Summary Interface Description AskfaceFaceQueueListener Interface for classes interested in faces received from the Crossfire server.AskfaceQueue Interface for classes that allow sending "askface" commands.FaceQueue Interface for classes implementing a means to loadFaces.FaceQueueListener Interface for listeners interested inFaceQueueevents.FacesManager Maintains a mapping of face numbers to face data.FacesManagerListener Interface for listeners interested inFacesManagerevents.FacesProvider Interface for face providers.ImageCache Interface forImageIconcaching classes. -
Class Summary Class Description AbstractFaceQueue Abstract base class for classes implementingFaceQueue.AbstractFacesManager Abstract base class forFacesManagerimplementations.AskfaceFaceQueue AFaceQueuerequesting faces by "askface" commands sent to the Crossfire server.DefaultFacesManager RetrievesFaceinformation by face ID.Face AFacerepresents one image received from a Crossfire server.FaceCache A cache forFaceinstances.FaceImages Consists of threeImageIconsrepresenting aFace.FaceImagesUtils Utility class for creatingFaceImagesinstances.FacesProviderFactory A factory for creatingFacesProviderinstances.FacesQueue The mainFaceQueuefor loading faces.FileCache A disk based cache for image files.FileCacheFaceQueue AFaceQueueloading faces fromImageCacheinstances.ImageScale2x A utility to perform the scale2x algorithm on a Java Image.ImageScale8d A utility to scale down an image by 8 in both dimensions.MagicMapFacesProvider AFacesProviderthat returns faces scaled to 4x4 pixels.OriginalFacesProvider AFacesProviderthat returns faces scaled to 64x64 pixels.RawScale2x A simple implementation of the Scale2x algorithm for scaling raw image data.RawScale8d Scales down a raw image to an eighth in both dimensions.ScaledFacesProvider AFacesProviderthat returns faces scaled to 64x64 pixels.SmoothFaces Maintains smoothing information received from the Crossfire server.