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(java.lang.String faceName,
int pos,
int size)
Report position and size of a face for loading it later.
|
protected javax.swing.ImageIcon |
createImage(java.lang.String faceName,
long stretch)
Create an image not found in the cache.
|
getImageIconForFacename, reload
public 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 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 javax.swing.ImageIcon createImage(@NotNull java.lang.String faceName, long stretch)
createImage
in class AbstractFaceProvider
faceName
- face name to get image for, excluding path and endingstretch
- stretch factor