Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.faces.FacesManager Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.faces.FacesManager:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.faces.FacesManager:
Collaboration graph

Public Member Functions

void addFacesManagerListener (@NotNull FacesManagerListener facesManagerListener)
 
Face getFace (int faceNum)
 
Face getFace2 (int faceNum)
 
ImageIcon getMagicMapImageIcon (int faceNum, @Nullable AtomicBoolean returnIsUnknownImage)
 
ImageIcon getOriginalImageIcon (int faceNum, @Nullable AtomicBoolean returnIsUnknownImage)
 
ImageIcon getScaledImageIcon (int faceNum, @Nullable AtomicBoolean returnIsUnknownImage)
 
void removeFacesManagerListener (@NotNull FacesManagerListener facesManagerListener)
 
void reset ()
 

Detailed Description

Maintains a mapping of face numbers to face data. Face data can be queried for original size, scaled data for map views, or reduced size for minimap views. Listeners can be attached to be notified when face data has been loaded.

Author
Andreas Kirschbaum

Definition at line 40 of file FacesManager.java.

Member Function Documentation

◆ addFacesManagerListener()

void com.realtime.crossfire.jxclient.faces.FacesManager.addFacesManagerListener ( @NotNull FacesManagerListener  facesManagerListener)

◆ getFace()

Face com.realtime.crossfire.jxclient.faces.FacesManager.getFace ( int  faceNum)

◆ getFace2()

Face com.realtime.crossfire.jxclient.faces.FacesManager.getFace2 ( 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

Implemented in com.realtime.crossfire.jxclient.faces.AbstractFacesManager.

Referenced by com.realtime.crossfire.jxclient.map.MapUpdaterState.mapFace().

Here is the caller graph for this function:

◆ getMagicMapImageIcon()

ImageIcon com.realtime.crossfire.jxclient.faces.FacesManager.getMagicMapImageIcon ( int  faceNum,
@Nullable AtomicBoolean  returnIsUnknownImage 
)

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
returnIsUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face, or the "unknown" face if the face is not loaded

Implemented in com.realtime.crossfire.jxclient.faces.AbstractFacesManager.

Referenced by com.realtime.crossfire.jxclient.faces.MagicMapFacesProvider.getImageIcon().

Here is the caller graph for this function:

◆ getOriginalImageIcon()

ImageIcon com.realtime.crossfire.jxclient.faces.FacesManager.getOriginalImageIcon ( int  faceNum,
@Nullable AtomicBoolean  returnIsUnknownImage 
)

◆ getScaledImageIcon()

ImageIcon com.realtime.crossfire.jxclient.faces.FacesManager.getScaledImageIcon ( int  faceNum,
@Nullable AtomicBoolean  returnIsUnknownImage 
)

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
returnIsUnknownImagereturns whether the returned face is the "unknown" face; ignored if
null
Returns
the face, or the "unknown" face if the face is not loaded

Implemented in com.realtime.crossfire.jxclient.faces.AbstractFacesManager.

Referenced by com.realtime.crossfire.jxclient.faces.ScaledFacesProvider.getImageIcon().

Here is the caller graph for this function:

◆ removeFacesManagerListener()

void com.realtime.crossfire.jxclient.faces.FacesManager.removeFacesManagerListener ( @NotNull FacesManagerListener  facesManagerListener)

◆ reset()

void com.realtime.crossfire.jxclient.faces.FacesManager.reset ( )

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