@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 |
---|---|
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, toImageIcon
public 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)
ResizableIcon
paintIcon
in interface ResizableIcon
paintIcon
in class ScalableImageIcon
c
- the given component.g
- the graphics to paint on.x
- x coordinate.y
- y coordinate.w
- width to paint.h
- height to paint.public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
paintIcon
in class ScalableImageIcon