@OpenApiAll public class ResizableIconAdapter extends java.lang.Object implements ResizableIcon
Icon to a ResizableIcon| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns cloned instance of this icon.
|
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.
|
static ResizableIcon |
toResizableIcon(javax.swing.Icon icon)
Create an adapter for a given icon.
|
public static ResizableIcon toResizableIcon(javax.swing.Icon icon)
icon - iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic void paintIcon(@CheckForNull
java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
ResizableIconpaintIcon in interface ResizableIconc - the given component.g - the graphics to paint on.x - x coordinate.y - y coordinate.w - width to paint.h - height to paint.public java.lang.Object clone()
ResizableIconclone in interface ResizableIconclone in class java.lang.Objectpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Icon