public interface SVGIcons
Manages SVG icons for ui components.
color() follows the 'Button.foreground' color of the current Look and feel.
Add icons via put(String, URL) or put(String, SVGIcon) and retrieve them via get(String).- See Also:
-
Field Summary
Fields -
Method Summary
-
Field Details
-
COLOR
The default icon color.- Value type: Color
- Default value: UIManager.getColor("Button.foreground")
-
-
Method Details
-
color
Follows the 'Button.foreground' color of the current Look and feel.- Returns:
- the
Valuecontrolling the icon color
-
size
int size()- Returns:
- the icon size
-
put
Adds the given icon to this Icons instance, usingsize()andcolor(). Retrieve an icon viaget(String).- Parameters:
identifier- the icon identifiersvgUrl- the svg resource url- Throws:
IllegalArgumentException- in case an icon has already been associated with the given identifier
-
put
Adds the given icon to this SVGIcons instance. Retrieve an icon viaget(String).- Parameters:
identifier- the icon identifiericon- the icon- Throws:
IllegalArgumentException- in case an icon has already been associated with the given identifier
-
get
Retrieves the icon associated with the given ikon from this Icons instance.- Parameters:
identifier- the icon identifier- Returns:
- the
SVGIconassociated with the given identifier - Throws:
IllegalArgumentException- in case no icon has been associated with the given identifier
-
svgIcons
- Parameters:
size- the icon size- Returns:
- a new
SVGIconsinstance
-