Package com.github.weisj.darklaf.icons
Class ToggleIcon
java.lang.Object
com.github.weisj.darklaf.icons.ToggleIcon
- All Implemented Interfaces:
Icon
public class ToggleIcon extends Object implements Icon
-
Constructor Summary
Constructors Constructor Description ToggleIcon(Icon active, Icon inactive) -
Method Summary
Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics g, int x, int y)voidsetActive(boolean active)
-
Constructor Details
-
Method Details
-
setActive
public void setActive(boolean active) -
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-