Package com.inductiveautomation.rm.swing
Class RMIconUtils.StretcherIcon
java.lang.Object
com.inductiveautomation.rm.swing.RMIconUtils.StretcherIcon
- All Implemented Interfaces:
Icon
- Enclosing class:
- RMIconUtils
An icon implementation that stretches another icon to specified with.
-
Constructor Summary
ConstructorsConstructorDescriptionStretcherIcon(Icon anIcon, int aWidth, int aHeight) Creates a new StretcherIcon with given width and height. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Returns the encapsulated icon.intReturns height.intReturns width.voidPaints the icon.
-
Constructor Details
-
StretcherIcon
Creates a new StretcherIcon with given width and height.
-
-
Method Details
-
getIcon
Returns the encapsulated icon. -
getIconWidth
public int getIconWidth()Returns width.- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()Returns height.- Specified by:
getIconHeightin interfaceIcon
-
paintIcon
Paints the icon.
-