public interface ControlIcon
Provides small and large versions of an icon.
For instances use the controlIcon(ImageIcon, ImageIcon)
factory
method or controlIcon(ImageIcon)
in case of a single icon size.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ControlIcon
controlIcon
(ImageIcon icon) Creates a newControlIcon
using the same icon for both small and large.static ControlIcon
controlIcon
(ImageIcon small, ImageIcon large) large()
small()
-
Method Details
-
small
ImageIcon small()- Returns:
- the small version of the icon
-
large
ImageIcon large()- Returns:
- the large version of the icon
-
controlIcon
Creates a newControlIcon
using the same icon for both small and large.- Parameters:
icon
- the icon, used as both small and large- Returns:
- a new
ControlIcon
instance
-
controlIcon
- Parameters:
small
- the small version of the iconlarge
- the large version of the icon- Returns:
- a new
ControlIcon
instance
-