public class CollectedFaceProvider extends AbstractFaceProvider
| Constructor and Description |
|---|
CollectedFaceProvider(java.io.File file)
Creates a new instance.
|
CollectedFaceProvider(java.lang.String fileName)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInfo(@NotNull java.lang.String faceName,
int pos,
int size)
Report position and size of a face for loading it later.
|
protected @Nullable javax.swing.ImageIcon |
createImage(@NotNull java.lang.String faceName,
long stretch)
Creates an image not found in the cache.
|
getImageIconForFacename, reloadpublic CollectedFaceProvider(java.io.File file)
throws java.io.FileNotFoundException
file - file where icons are foundjava.io.FileNotFoundException - in case the File file wasn't foundpublic CollectedFaceProvider(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - name of file where icons are foundjava.io.FileNotFoundException - in case the File with name fileName
wasn't foundpublic void addInfo(@NotNull
@NotNull java.lang.String faceName,
int pos,
int size)
faceName - face name to get image for, excluding path and endingpos - position of imagesize - Size of image@Nullable
protected @Nullable javax.swing.ImageIcon createImage(@NotNull
@NotNull java.lang.String faceName,
long stretch)
AbstractFaceProvidercreateImage in class AbstractFaceProviderfaceName - face name to get image for, excluding path and endingstretch - stretch factor