@OpenApiAll public class DoubleSizeImageIcon extends ScalableImageIcon
ScalableImageIcon.AbstractImageLoader| Constructor and Description |
|---|
DoubleSizeImageIcon(javax.swing.Icon smallIcon,
ResizableIcon largeIcon)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResizableIcon |
getLargeIcon() |
javax.swing.Icon |
getSmallIcon() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Draw the icon in the given bounds.
|
clone, create, doNotScale, getIconHeight, getIconWidth, getImage, getLocation, getURL, internalGetIcon, internalSetLoader, internalSuperGetImage, setImage, toImageIcon, toImageIcon, toImageIconpublic DoubleSizeImageIcon(javax.swing.Icon smallIcon,
@CheckForNull
ResizableIcon largeIcon)
smallIcon - small iconlargeIcon - large iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
ResizableIconpaintIcon in interface ResizableIconpaintIcon in class ScalableImageIconc - the given component.g - the graphics to paint on.x - x coordinate.y - y coordinate.w - width to paint.h - height to paint.@CheckForNull public ResizableIcon getLargeIcon()
public javax.swing.Icon getSmallIcon()
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.IconpaintIcon in class ScalableImageIcon