22 package com.realtime.crossfire.jxclient.faces;
25 import javax.swing.ImageIcon;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
61 facesManagerListeners.
add(facesManagerListener);
69 facesManagerListeners.
remove(facesManagerListener);
79 facesManagerListener.faceUpdated(face);
97 public ImageIcon
getScaledImageIcon(
final int faceNum, @Nullable
final boolean[] isUnknownImage) {
117 return faceCache.
getFace(faceNum);
141 return faceCache.
getFace(faceNum);
155 return faceCache.
getFace(faceNum);
ImageIcon getScaledImageIcon()
Returns the ImageIcon scaled for the map view.
final EventListenerList2< FacesManagerListener > facesManagerListeners
The FacesManagerListeners to notify about changed faces.
A list of event listeners.
A cache for Face instances.
final FaceCache faceCache
The FaceCache instance used to look up in-memory faces.
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 loa...
Consists of three ImageIcons representing a Face.
ImageIcon getMagicMapImageIcon()
Returns the ImageIcon scaled for the magic map view.
void addFacesManagerListener(@NotNull final FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.the listener
Interface for listeners interested in FacesManager events.
Face getFace(final int faceNum)
Returns a face by face id.
void add(@NotNull final T listener)
Adds a listener.
void removeFacesManagerListener(@NotNull final FacesManagerListener facesManagerListener)
Removes a FacesManagerListener to be notified about updated faces.the listener
AbstractFacesManager(@NotNull final FaceCache faceCache)
Creates a new instance.
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 l...
Face lookupFace(final int faceNum)
Returns the Face instance for a given face ID.
abstract FaceImages getFaceImages(final int faceNum, @Nullable boolean[] isUnknownImage)
Returns the FaceImages information for a face ID.
void reset()
Forgets about all face information.
Face getFace2(final int faceNum)
Returns the Face instance for a given face ID.Requests the face from the server if necessary...
void reset()
Forgets about pending faces.
Face getFace(final int faceNum)
Returns the Face instance for a given face ID.Requests the face face from the server if necessary...
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 ...
void fireFaceUpdated(@NotNull final Face face)
Notifies all FacesManagerListeners that a face has been updated.
Abstract base class for FacesManager implementations.
void remove(@NotNull final T listener)
Removes a listener.
ImageIcon getOriginalImageIcon()
Returns the ImageIcon as sent by the Crossfire server.
Maintains a mapping of face numbers to face data.