- java.lang.Object
-
- org.tentackle.fx.DefaultImageProvider
-
- All Implemented Interfaces:
ImageProvider
@ImageProviderService public class DefaultImageProvider extends java.lang.Object implements ImageProvider
The default image provider for framework-related images.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultImageProvider()Creates an image provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getExtensions()Gets the file EXTENSIONS supported by this image provider.javafx.scene.image.ImagegetImage(java.lang.String name)Gets an image.
There is only one image instance per name.
The name is a plain name, not a path and no type extension.
-
-
-
Method Detail
-
getExtensions
public java.lang.String[] getExtensions()
Gets the file EXTENSIONS supported by this image provider.- Returns:
- the EXTENSIONS
-
getImage
public javafx.scene.image.Image getImage(java.lang.String name)
Description copied from interface:ImageProviderGets an image.
There is only one image instance per name.
The name is a plain name, not a path and no type extension.Throws IllegalArgumentException if image not found.
- Specified by:
getImagein interfaceImageProvider- Parameters:
name- the image's name- Returns:
- the image
-
-