public static class RMIconUtils.StretcherIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
StretcherIcon(javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Creates a new StretcherIcon with given width and height.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon()
Returns the encapsulated icon.
|
int |
getIconHeight()
Returns height.
|
int |
getIconWidth()
Returns width.
|
void |
paintIcon(java.awt.Component aComponent,
java.awt.Graphics aGraphics,
int x,
int y)
Paints the icon.
|
public StretcherIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)
public javax.swing.Icon getIcon()
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public void paintIcon(java.awt.Component aComponent, java.awt.Graphics aGraphics, int x, int y)
paintIcon
in interface javax.swing.Icon