java.lang.Object
javax.swing.ImageIcon
is.codion.swing.common.ui.icon.SVGIcon
- All Implemented Interfaces:
Serializable,Accessible,Icon
A SVG based icon.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon -
Field Summary
-
Method Summary
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toString
-
Method Details
-
size
public int size()- Returns:
- the size
-
color
Sets the icon color- Parameters:
color- the color
-
derive
Creates a derived copy of this icon using given size- Parameters:
size- the size- Returns:
- a new icon
-
svgIcon
Instantiates a newSVGIcon- Parameters:
svgIconUrl- the svg icon resource urlsize- the sizecolor- the color- Returns:
- a new
SVGIcon
-