Class PendularMovingIcon
- java.lang.Object
-
- org.bidib.wizard.mvc.common.view.icon.PendularMovingIcon
-
- All Implemented Interfaces:
Icon,AnimatedIcon
public class PendularMovingIcon extends Object implements AnimatedIcon
-
-
Constructor Summary
Constructors Constructor Description PendularMovingIcon(Icon icon, double degrees)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDegrees()Gets the degrees of rotation.IcongetIcon()Gets the Icon to be movedintgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics g, int x, int y)voidsetDegrees(double degrees)Set the degrees of rotation.
-
-
-
Constructor Detail
-
PendularMovingIcon
public PendularMovingIcon(Icon icon, double degrees)
-
-
Method Detail
-
getIcon
public Icon getIcon()
Gets the Icon to be moved- Returns:
- the Icon to be moved
-
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:
setDegreesin interfaceAnimatedIcon- Parameters:
degrees- the degrees of rotation
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
-