Package com.nomagic.ui
Interface ResizableIcon
-
- All Superinterfaces:
java.lang.Cloneable
,javax.swing.Icon
- All Known Implementing Classes:
DoubleSizeImageIcon
,ResizableIconAdapter
,ResizableIconImageIcon
,RetinaImageIcon
,ScalableImageIcon
,SquareIcon
,SwingImageIcon
@OpenApiAll public interface ResizableIcon extends javax.swing.Icon, java.lang.Cloneable
The icon which can be resized during the drawing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
clone()
Returns cloned instance of this icon.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.
-
-
-
Method Detail
-
paintIcon
void paintIcon(@CheckForNull java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
Draw the icon in the given bounds. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.- Parameters:
c
- the given component.g
- the graphics to paint on.x
- x coordinate.y
- y coordinate.w
- width to paint.h
- height to paint.
-
clone
java.lang.Object clone()
Returns cloned instance of this icon.- Returns:
- cloned instance.
-
-