Package resources.icons

# Class RotateIcon

java.lang.Object
resources.icons.RotateIcon

All Implemented Interfaces:
  `Icon`

public class RotateIcon extends Object implements Icon

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RotateIcon(Icon icon, int degrees)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getIconHeight()`
  `int`
  `getIconWidth()`
  `int`
  `getRotation()`
  Returns the rotation amount.
  `Icon`
  `getSourceIcon()`
  The source icon being rotated.
  `void`
  `paintIcon(Component c, Graphics g, int x, int y)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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