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 ControlIconcontrolIcon(ImageIcon icon) Creates a newControlIconusing the same icon for both small and large.static ControlIconcontrolIcon(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 newControlIconusing the same icon for both small and large.- Parameters:
icon- the icon, used as both small and large- Returns:
- a new
ControlIconinstance
-
controlIcon
- Parameters:
small- the small version of the iconlarge- the large version of the icon- Returns:
- a new
ControlIconinstance
-