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.int
Returns height.int
Returns width.void
Paints 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:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()Returns height.- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
Paints the icon.
-