Package resources.icons
Class TranslateIcon
java.lang.Object
resources.icons.TranslateIcon
- All Implemented Interfaces:
Icon
- Direct Known Subclasses:
CenterTranslateIcon
-
Constructor Summary
ConstructorDescriptionTranslateIcon
(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
-
getBaseIcon
Returns the icon that is being translated- Returns:
- the icon that is being translated
-
getX
public int getX()Returns the amount the icon is being translated on the x axis;- Returns:
- the amount the icon is being translated on the x axis;
-
getY
public int getY()Returns the amount the icon is being translated on the y axis;- Returns:
- the amount the icon is being translated on the y axis;
-