Class LinearMovingIcon

java.lang.Object
org.bidib.wizard.mvc.common.view.icon.LinearMovingIcon
All Implemented Interfaces:
Icon, AnimatedIcon

public class LinearMovingIcon extends Object implements AnimatedIcon
  • Constructor Details

    • LinearMovingIcon

      public LinearMovingIcon(Icon icon, double degrees)
  • Method Details

    • getIcon

      public Icon getIcon()
      Gets the Icon to be rotated
      Returns:
      the Icon to be rotated
    • getDegrees

      public double getDegrees()
      Gets the degrees of rotation. Only used for Rotate.ABOUT_CENTER.
      Returns:
      the degrees of rotation
    • setDegrees

      public void setDegrees(double degrees)
      Set the degrees of rotation. Only used for Rotate.ABOUT_CENTER. This method only sets the degress of rotation, it will not cause the Icon to be repainted. You must invoke repaint() on any component using this icon for it to be repainted.
      Specified by:
      setDegrees in interface AnimatedIcon
      Parameters:
      degrees - the degrees of rotation
    • getIconWidth

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

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

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