java.lang.Objectcom.realtime.crossfire.jxclient.faces.MagicMapFacesProvider
public class MagicMapFacesProvider
A FacesProvider that returns faces scaled to 4x4 pixels.
| Field Summary | |
|---|---|
private  FacesManager | 
facesManager
The FacesManager to query. | 
private static int | 
SIZE
The size of faces in pixels.  | 
| Constructor Summary | |
|---|---|
MagicMapFacesProvider(FacesManager facesManager)
Creates a new instance.  | 
|
| Method Summary | |
|---|---|
 javax.swing.ImageIcon | 
getImageIcon(int faceNum)
Returns the face for a face ID.  | 
 int | 
getSize()
Returns the size of faces in pixels.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
@NotNull private final FacesManager facesManager
FacesManager to query.
private static final int SIZE
| Constructor Detail | 
|---|
public MagicMapFacesProvider(@NotNull
                             FacesManager facesManager)
facesManager - the faces manager to query| Method Detail | 
|---|
@NotNull public javax.swing.ImageIcon getImageIcon(int faceNum)
getImageIcon in interface FacesProviderfaceNum - the face ID
public int getSize()
getSize in interface FacesProvider