Package resources.icons
Class CenterTranslateIcon
java.lang.Object
resources.icons.TranslateIcon
resources.icons.CenterTranslateIcon
- All Implemented Interfaces:
Icon
An icon that will update it's x,y offset to be centered over another, presumably larger
icon.
-
Constructor Summary
-
Method Summary
Methods inherited from class resources.icons.TranslateIcon
getBaseIcon, getIconHeight, getIconWidth, getX, getY, paintIcon, toString
-
Constructor Details
-
CenterTranslateIcon
Constructor- Parameters:
icon
- the icon to centercenterOverSize
- the size of the area over which this icon is be centered.Note: this constructor assumes the area is a square. If not, add another constructor to this class that takes a width and height for the area
-