Class RotateIcon

java.lang.Object
resources.icons.RotateIcon
All Implemented Interfaces:
Icon

public class RotateIcon extends Object implements Icon
  • Constructor Details

    • RotateIcon

      public RotateIcon(Icon icon, int degrees)
  • Method Details

    • getIconHeight

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSourceIcon

      public Icon getSourceIcon()
      The source icon being rotated.
      Returns:
      the source icon being rotate
    • getRotation

      public int getRotation()
      Returns the rotation amount.
      Returns:
      the rotation amount