@OpenApiAll public class RetinaImageIcon extends ResizableIconImageIcon
ResizableIconImageIcon.ResizableIconLoader
ScalableImageIcon.AbstractImageLoader
Constructor and Description |
---|
RetinaImageIcon(java.awt.Image image)
Constructor.
|
RetinaImageIcon(java.awt.Image image,
int width,
int height)
Constructor.
|
RetinaImageIcon(ResizableIcon icon)
Constructor.
|
RetinaImageIcon(ResizableIcon icon,
int width,
int height)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
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, getImage, getLocation, getURL, internalGetIcon, internalSetLoader, internalSuperGetImage, setImage, toImageIcon, toImageIcon, toImageIcon
public RetinaImageIcon(ResizableIcon icon)
icon
- given iconpublic RetinaImageIcon(ResizableIcon icon, int width, int height)
icon
- given iconpublic RetinaImageIcon(java.awt.Image image, int width, int height)
image
- given imagepublic RetinaImageIcon(java.awt.Image image)
image
- given imagepublic void paintIcon(@CheckForNull 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
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
getIconWidth
in class ScalableImageIcon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
getIconHeight
in class ScalableImageIcon