Class MagicMapFacesProvider
java.lang.Object
com.realtime.crossfire.jxclient.faces.MagicMapFacesProvider
- All Implemented Interfaces:
FacesProvider
A
FacesProvider that returns faces scaled to 4x4 pixels.-
Constructor Summary
ConstructorsConstructorDescriptionMagicMapFacesProvider(@NotNull FacesManager facesManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull ImageIcongetImageIcon(int faceNum, @Nullable AtomicBoolean returnIsUnknownImage) Returns the face for a face ID.intgetSize()Returns the size of faces in pixels.
-
Constructor Details
-
MagicMapFacesProvider
Creates a new instance.- Parameters:
facesManager- the faces manager to query
-
-
Method Details
-
getSize
public int getSize()Description copied from interface:FacesProviderReturns the size of faces in pixels.- Specified by:
getSizein interfaceFacesProvider- Returns:
- the size in pixels
-
getImageIcon
@NotNull public @NotNull ImageIcon getImageIcon(int faceNum, @Nullable @Nullable AtomicBoolean returnIsUnknownImage) Description copied from interface:FacesProviderReturns 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.- Specified by:
getImageIconin interfaceFacesProvider- Parameters:
faceNum- the face IDreturnIsUnknownImage- returns whether the returned face is the "unknown" face; ignored ifnull- Returns:
- the face, or the "unknown" face if the face is not loaded
-