Class SvgIconLoader
java.lang.Object
be.imgn.swing.flatlaf.SvgIconLoader
- All Implemented Interfaces:
IconLoader
Loads SVG icons, through
FlatSVGIcon: they stay sharp on HiDPI screens.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SvgIconLoader
public SvgIconLoader()Creates the loader.
-
-
Method Details
-
supports
Description copied from interface:IconLoaderReturns whether this loader loads an icon, by its extension.- Specified by:
supportsin interfaceIconLoader- Parameters:
path- the icon's path, relative to its package- Returns:
trueif this loader loads it
-
load
Description copied from interface:IconLoaderLoads an icon.- Specified by:
loadin interfaceIconLoader- Parameters:
opener- the opener of the icon's packagepath- the icon's path, relative to its package- Returns:
- the icon
-