Package resources.icons
Class TranslateIcon
java.lang.Object
resources.icons.TranslateIcon
- All Implemented Interfaces:
Icon
- Direct Known Subclasses:
CenterTranslateIcon
-
Constructor Summary
ConstructorsConstructorDescriptionTranslateIcon
(Icon icon, int translateX, int translateY) Where the translate values are offset from the icon's upper corner -
Method Summary
-
Constructor Details
-
TranslateIcon
Where the translate values are offset from the icon's upper corner- Parameters:
icon
- the icontranslateX
- the x translationtranslateY
- the y translation
-
-
Method Details
-
paintIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
toString
-