Package com.github.weisj.darklaf.icons
Class RotatableIcon
- java.lang.Object
-
- com.github.weisj.darklaf.icons.RotatableIcon
-
-
Constructor Summary
Constructors Constructor Description RotatableIcon()RotatableIcon(Icon icon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAngle()IcongetIcon()intgetIconHeight()intgetIconWidth()com.github.weisj.darklaf.util.AlignmentgetOrientation()voidpaintIcon(Component c, Graphics g, int x, int y)voidsetIcon(Icon icon)voidsetOrientation(com.github.weisj.darklaf.util.Alignment alignment)voidsetRotation(double angle)
-
-
-
Constructor Detail
-
RotatableIcon
public RotatableIcon()
-
RotatableIcon
public RotatableIcon(Icon icon)
-
-
Method Detail
-
setIcon
public void setIcon(Icon icon)
-
getIcon
public Icon getIcon()
-
getAngle
public double getAngle()
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
getOrientation
public com.github.weisj.darklaf.util.Alignment getOrientation()
-
setOrientation
public void setOrientation(com.github.weisj.darklaf.util.Alignment alignment)
-
setRotation
public void setRotation(double angle)
-
-