Class MagicMapFacesProvider
- java.lang.Object
-
- com.realtime.crossfire.jxclient.faces.MagicMapFacesProvider
-
- All Implemented Interfaces:
FacesProvider
public class MagicMapFacesProvider extends java.lang.Object implements FacesProvider
AFacesProviderthat returns faces scaled to 4x4 pixels.
-
-
Constructor Summary
Constructors Constructor Description MagicMapFacesProvider(@NotNull FacesManager facesManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull javax.swing.ImageIcongetImageIcon(int faceNum, boolean @Nullable [] isUnknownImage)Returns the face for a face ID.intgetSize()Returns the size of faces in pixels.
-
-
-
Constructor Detail
-
MagicMapFacesProvider
public MagicMapFacesProvider(@NotNull @NotNull FacesManager facesManager)Creates a new instance.- Parameters:
facesManager- the faces manager to query
-
-
Method Detail
-
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 javax.swing.ImageIcon getImageIcon(int faceNum, boolean @Nullable [] isUnknownImage)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 IDisUnknownImage- returns whether the returned face is the "unknown" face; ignored ifnull- Returns:
- the face, or the "unknown" face if the face is not loaded
-
-