org.grinvin.gui.icons
Class SvgIconManager
java.lang.Object
org.grinvin.gui.icons.SvgIconManager
public class SvgIconManager
extends java.lang.Object
Handles creation of icons from svg files.
SvgIconManager
protected SvgIconManager()
Default constructor. Can be overridden, but should not
be called directly.
createSelectUnselectIcon
public SelectUnselectIcon createSelectUnselectIcon(String iconPath,
String selectedIconPath,
int size)
getIcon
public ImageIcon getIcon(String iconPath,
int size)
Returns an imageicon with the given size for the svg file given.
iconPath
- Absolute classpath to the svg filesize
- Size in pixels of the resulting icon
getIcon
public ImageIcon getIcon(String iconPath,
int width,
int height)
getImageAsStream
public InputStream getImageAsStream(String imagePath,
int width,
int height)
getInstance
public static SvgIconManager getInstance()
Return the sole instance of this class.