 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.faces;
26 import java.util.concurrent.atomic.AtomicBoolean;
27 import javax.swing.ImageIcon;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
75 facesManagerListener.faceUpdated(face);
81 public ImageIcon
getOriginalImageIcon(
final int faceNum, @Nullable
final AtomicBoolean returnIsUnknownImage) {
87 public ImageIcon
getScaledImageIcon(
final int faceNum, @Nullable
final AtomicBoolean returnIsUnknownImage) {
93 public ImageIcon
getMagicMapImageIcon(
final int faceNum, @Nullable
final AtomicBoolean returnIsUnknownImage) {
Maintains a mapping of face numbers to face data.
void removeFacesManagerListener(@NotNull final FacesManagerListener facesManagerListener)
Removes a FacesManagerListener to be notified about updated faces.
A cache for Face instances.
ImageIcon getMagicMapImageIcon()
Returns the ImageIcon scaled for the magic map view.
Face getFace2(final int faceNum)
Returns the Face instance for a given face ID.
void fireFaceUpdated(@NotNull final Face face)
Notifies all FacesManagerListeners that a face has been updated.
ImageIcon getScaledImageIcon()
Returns the ImageIcon scaled for the map view.
ImageIcon getMagicMapImageIcon(final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
Returns the "magic map" face for a face ID.
Face getFace(final int faceNum)
Returns a face by face id.
ImageIcon getOriginalImageIcon(final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
Returns the "original" face for a face ID.
Interface for listeners interested in FacesManager events.
abstract FaceImages getFaceImages(final int faceNum, @Nullable AtomicBoolean returnIsUnknownImage)
Returns the FaceImages information for a face ID.
A list of event listeners.
final EventListenerList2< FacesManagerListener > facesManagerListeners
The FacesManagerListeners to notify about changed faces.
AbstractFacesManager(@NotNull final FaceCache faceCache)
Creates a new instance.
Face getFace(final int faceNum)
Returns the Face instance for a given face ID.
void reset()
Forgets about pending faces.
void reset()
Forgets about all face information.
Consists of three ImageIcons representing a Face.
final FaceCache faceCache
The FaceCache instance used to look up in-memory faces.
Abstract base class for FacesManager implementations.
ImageIcon getScaledImageIcon(final int faceNum, @Nullable final AtomicBoolean returnIsUnknownImage)
Returns the "scaled" face for a face ID.
ImageIcon getOriginalImageIcon()
Returns the ImageIcon as sent by the Crossfire server.
Face lookupFace(final int faceNum)
Returns the Face instance for a given face ID.
void addFacesManagerListener(@NotNull final FacesManagerListener facesManagerListener)
Adds a FacesManagerListener to be notified about updated faces.