Class DefaultImageProvider

    • 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.Image getImage​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultImageProvider

        public DefaultImageProvider()
        Creates an image provider.
    • 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: ImageProvider
        Gets 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:
        getImage in interface ImageProvider
        Parameters:
        name - the image's name
        Returns:
        the image