Package com.github.weisj.darklaf.icons
Class ToggleIcon
- java.lang.Object
-
- com.github.weisj.darklaf.icons.ToggleIcon
-
-
Constructor Summary
Constructors Constructor Description ToggleIcon(Icon active, Icon inactive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()booleanisActive()booleanisChooseAlternativeIcon()voidpaintIcon(Component c, Graphics g, int x, int y)voidsetActive(boolean active)voidsetChooseAlternativeIcon(boolean chooseAlternative)
-
-
-
Method Detail
-
setChooseAlternativeIcon
public void setChooseAlternativeIcon(boolean chooseAlternative)
-
isChooseAlternativeIcon
public boolean isChooseAlternativeIcon()
-
setActive
public void setActive(boolean active)
-
isActive
public boolean isActive()
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
-