Package com.nomagic.ui
Class ScalableImageIcon.ScaledImageLoader
- java.lang.Object
-
- com.nomagic.ui.ScalableImageIcon.AbstractImageLoader
-
- com.nomagic.ui.ScalableImageIcon.ImageLoader
-
- com.nomagic.ui.ScalableImageIcon.MultiResolutionImageLoader
-
- com.nomagic.ui.ScalableImageIcon.ScaledImageLoader
-
- Direct Known Subclasses:
ScalableImageIcon.ByteArrayIconLoader
- Enclosing class:
- ScalableImageIcon
private class ScalableImageIcon.ScaledImageLoader extends ScalableImageIcon.MultiResolutionImageLoader
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
scale
-
Fields inherited from class com.nomagic.ui.ScalableImageIcon.ImageLoader
url
-
Fields inherited from class com.nomagic.ui.ScalableImageIcon.AbstractImageLoader
icon, silent
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ScaledImageLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doNotScale()
protected void
internalLoad()
private ScalableImageIcon
loadScaledBitmapIcon(java.net.URL url)
protected java.awt.Dimension
retrieveSizeForIcon(javax.swing.Icon icon)
private java.awt.Dimension
retrieveSmallIconSize()
private java.awt.Image
scaleImage(java.awt.Image image)
protected int
scaleSize(int size)
-
Methods inherited from class com.nomagic.ui.ScalableImageIcon.MultiResolutionImageLoader
convertToSVGIconURL, createIfNotEmpty
-
Methods inherited from class com.nomagic.ui.ScalableImageIcon.ImageLoader
init, init, init, internalLoadAsBitmap, internalLoadAsSVG, isSvg, loadBitmapIcon, loadSVGIcon, loadSVGIcon
-
Methods inherited from class com.nomagic.ui.ScalableImageIcon.AbstractImageLoader
getIcon, load, loadImage
-
-
-
-
Method Detail
-
doNotScale
public void doNotScale()
-
retrieveSmallIconSize
private java.awt.Dimension retrieveSmallIconSize()
-
retrieveSizeForIcon
protected java.awt.Dimension retrieveSizeForIcon(javax.swing.Icon icon)
-
internalLoad
protected void internalLoad()
- Overrides:
internalLoad
in classScalableImageIcon.ImageLoader
-
scaleImage
@CheckForNull private java.awt.Image scaleImage(@CheckForNull java.awt.Image image)
-
loadScaledBitmapIcon
@CheckForNull private ScalableImageIcon loadScaledBitmapIcon(java.net.URL url)
-
scaleSize
protected int scaleSize(int size)
-
-