public class ArchFaceProvider extends AbstractFaceProvider
Constructor and Description |
---|
ArchFaceProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addInfo(java.lang.String faceName,
java.lang.String fileName)
Report position 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.
|
java.lang.String |
getFilename(java.lang.String faceName)
Get the filename for a face.
|
int |
size()
Returns the number of faces.
|
getImageIconForFacename, reload
public int size()
public void addInfo(@NotNull java.lang.String faceName, @NotNull java.lang.String fileName)
faceName
- face name to get image for, excluding path and endingfileName
- filename with full reachable path of the png file (maybe
relative but must be loadable).@Nullable public java.lang.String getFilename(@NotNull java.lang.String faceName)
faceName
- face name to get filename forfaceName
or null
if no face@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