public interface ScalableIcon
extends javax.swing.Icon
Modifier and Type | Method and Description |
---|---|
float |
getScale() |
javax.swing.Icon |
scale(float scaleFactor)
Creates and returns a scaled instance of the icon.
|
float getScale()
javax.swing.Icon scale(float scaleFactor)
scale(1f)
will
return the icon in its original scale.
To scale this instance by n
times: scale(n * getScale())
.
Note that the methods Icon.getIconWidth()
and Icon.getIconHeight()
should return the scaled size of the icon.scaleFactor
- scale