Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.faces.FacesProvider Interface Reference

Interface for face providers. More...

+ Inheritance diagram for com.realtime.crossfire.jxclient.faces.FacesProvider:
+ Collaboration diagram for com.realtime.crossfire.jxclient.faces.FacesProvider:

Public Member Functions

ImageIcon getImageIcon (int faceNum, @Nullable boolean[] isUnknownImage)
 Returns the face for a face ID. More...
 
int getSize ()
 Returns the size of faces in pixels. More...
 

Detailed Description

Interface for face providers.

Author
Andreas Kirschbaum

Definition at line 32 of file FacesProvider.java.

Member Function Documentation

◆ getImageIcon()

ImageIcon com.realtime.crossfire.jxclient.faces.FacesProvider.getImageIcon ( int  faceNum,
@Nullable boolean []  isUnknownImage 
)

Returns the 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
isUnknownImagereturns 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.MagicMapFacesProvider, com.realtime.crossfire.jxclient.faces.OriginalFacesProvider, and com.realtime.crossfire.jxclient.faces.ScaledFacesProvider.

Referenced by com.realtime.crossfire.jxclient.gui.map.AbstractGUIMap.paintImage(), and com.realtime.crossfire.jxclient.gui.map.SmoothingRenderer.paintSmooth().

+ Here is the caller graph for this function:

◆ getSize()

int com.realtime.crossfire.jxclient.faces.FacesProvider.getSize ( )

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