Class AbstractFaceProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract @Nullable javax.swing.ImageIcon createImage​(@NotNull java.lang.String faceName, long stretch)
      Creates an image not found in the cache.
      @Nullable javax.swing.ImageIcon getImageIconForFacename​(@NotNull java.lang.String faceName, long stretch)
      Get an image from this FaceProvider.
      void reload()
      Reload faces.
      • Methods inherited from class java.lang.Object

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

      • AbstractFaceProvider

        public AbstractFaceProvider()
    • Method Detail

      • getImageIconForFacename

        @Nullable
        public @Nullable javax.swing.ImageIcon getImageIconForFacename​(@NotNull
                                                                       @NotNull java.lang.String faceName,
                                                                       long stretch)
        Description copied from interface: FaceProvider
        Get an image from this FaceProvider.
        Specified by:
        getImageIconForFacename in interface FaceProvider
        Parameters:
        faceName - face name to get image for, excluding path and ending
        Returns:
        icon for faceName
      • reload

        public void reload()
        Description copied from interface: FaceProvider
        Reload faces. This method does not really immediately reload all faces, lazy loading is allowed. But all old face information definitely is flushed, so in case the files on hard disk have changed, they will be freshly loaded from hard disk.
        Specified by:
        reload in interface FaceProvider
      • createImage

        @Nullable
        protected abstract @Nullable javax.swing.ImageIcon createImage​(@NotNull
                                                                       @NotNull java.lang.String faceName,
                                                                       long stretch)
        Creates an image not found in the cache.
        Parameters:
        faceName - face name to get image for, excluding path and ending
        stretch - stretch factor
        Returns:
        icon for faceName