public class OriginalFacesProvider extends java.lang.Object implements FacesProvider
FacesProvider
that returns faces scaled to 64x64 pixels.Modifier and Type | Field and Description |
---|---|
private FacesManager |
facesManager
The
FacesManager to query. |
private static int |
SIZE
The size of faces in pixels.
|
Constructor and Description |
---|
OriginalFacesProvider(FacesManager facesManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getImageIcon(int faceNum,
boolean[] isUnknownImage)
Returns the face for a face ID.
|
int |
getSize()
Returns the size of faces in pixels.
|
@NotNull private final FacesManager facesManager
FacesManager
to query.private static final int SIZE
public OriginalFacesProvider(@NotNull FacesManager facesManager)
facesManager
- the faces manager to query@NotNull public javax.swing.ImageIcon getImageIcon(int faceNum, @Nullable boolean[] isUnknownImage)
getImageIcon
in interface FacesProvider
faceNum
- the face IDisUnknownImage
- returns whether the returned face is the "unknown"
face; ignored if null
public int getSize()
getSize
in interface FacesProvider