Package com.inductiveautomation.rm.swing
Class RMIconUtils.StretcherIcon
- java.lang.Object
 - 
- com.inductiveautomation.rm.swing.RMIconUtils.StretcherIcon
 
 
- 
- All Implemented Interfaces:
 javax.swing.Icon
- Enclosing class:
 - RMIconUtils
 
public static class RMIconUtils.StretcherIcon extends java.lang.Object implements javax.swing.IconAn icon implementation that stretches another icon to specified with. 
- 
- 
Constructor Summary
Constructors Constructor Description StretcherIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)Creates a new StretcherIcon with given width and height. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.IcongetIcon()Returns the encapsulated icon.intgetIconHeight()Returns height.intgetIconWidth()Returns width.voidpaintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icon. 
 - 
 
- 
- 
Method Detail
- 
getIcon
public javax.swing.Icon getIcon()
Returns the encapsulated icon. 
- 
getIconWidth
public int getIconWidth()
Returns width.- Specified by:
 getIconWidthin interfacejavax.swing.Icon
 
- 
getIconHeight
public int getIconHeight()
Returns height.- Specified by:
 getIconHeightin interfacejavax.swing.Icon
 
- 
paintIcon
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)Paints the icon.- Specified by:
 paintIconin interfacejavax.swing.Icon
 
 - 
 
 -