Package com.helger.pdflayout.spec
Interface IPreloadFontResolver
-
- All Known Implementing Classes:
PreloadFontManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IPreloadFontResolver
FindPreloadFontobjects by ID.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PreloadFontgetPreloadFontOfID(com.helger.font.api.IFontResource aFontRes)Get thePreloadFontfrom the provided font resource.default PreloadFontgetPreloadFontOfID(com.helger.font.api.IHasFontResource aFontResProvider)Get thePreloadFontfrom the provided font resource provider.PreloadFontgetPreloadFontOfID(String sID)Get thePreloadFontwith the provided ID.
-
-
-
Method Detail
-
getPreloadFontOfID
@Nullable PreloadFont getPreloadFontOfID(@Nullable String sID)
Get thePreloadFontwith the provided ID.- Parameters:
sID- The ID to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-
getPreloadFontOfID
@Nullable default PreloadFont getPreloadFontOfID(@Nullable com.helger.font.api.IFontResource aFontRes)
Get thePreloadFontfrom the provided font resource.- Parameters:
aFontRes- The font resource to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-
getPreloadFontOfID
@Nullable default PreloadFont getPreloadFontOfID(@Nullable com.helger.font.api.IHasFontResource aFontResProvider)
Get thePreloadFontfrom the provided font resource provider.- Parameters:
aFontResProvider- The font resource provided from which to be resolved. May benull.- Returns:
nullif no suchPreloadFontexists.
-
-