Package com.nomagic.ui
Class ScalableImageIcon.RetinaImageLoader
- java.lang.Object
-
- com.nomagic.ui.ScalableImageIcon.AbstractImageLoader
-
- com.nomagic.ui.ScalableImageIcon.ImageLoader
-
- com.nomagic.ui.ScalableImageIcon.MultiResolutionImageLoader
-
- com.nomagic.ui.ScalableImageIcon.RetinaImageLoader
-
- Enclosing class:
- ScalableImageIcon
private class ScalableImageIcon.RetinaImageLoader extends ScalableImageIcon.MultiResolutionImageLoader
-
-
Field Summary
-
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
RetinaImageLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.net.URL
convertToEta2xIconURL(java.net.URL url)
private byte[]
getLargeIconData(com.nomagic.imageio.svg.SVGIconProxy svgIcon, int width, int height)
private byte[]
getSmallIconData(com.nomagic.imageio.svg.SVGIconProxy svgIcon, int width, int height)
protected void
internalLoad()
private void
loadMultiResolutionFromEta2xOrSvg(com.nomagic.imageio.svg.SVGIconProxy svgIcon)
private java.awt.Image
loadMultiResolutionFromSvgIcon(com.nomagic.imageio.svg.SVGIconProxy svgIcon, byte[] smallIconData)
private void
loadMultiResolutionImageFromSvg(com.nomagic.imageio.svg.SVGIconProxy svgIcon)
private byte[]
toByteArray(java.net.URL url)
-
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
-
convertToEta2xIconURL
@CheckForNull protected java.net.URL convertToEta2xIconURL(java.net.URL url)
-
loadMultiResolutionFromSvgIcon
private java.awt.Image loadMultiResolutionFromSvgIcon(com.nomagic.imageio.svg.SVGIconProxy svgIcon, byte[] smallIconData)
-
getLargeIconData
private byte[] getLargeIconData(com.nomagic.imageio.svg.SVGIconProxy svgIcon, int width, int height)
-
getSmallIconData
private byte[] getSmallIconData(com.nomagic.imageio.svg.SVGIconProxy svgIcon, int width, int height)
-
loadMultiResolutionImageFromSvg
private void loadMultiResolutionImageFromSvg(com.nomagic.imageio.svg.SVGIconProxy svgIcon)
-
loadMultiResolutionFromEta2xOrSvg
private void loadMultiResolutionFromEta2xOrSvg(com.nomagic.imageio.svg.SVGIconProxy svgIcon)
-
internalLoad
protected void internalLoad()
- Overrides:
internalLoad
in classScalableImageIcon.ImageLoader
-
toByteArray
@CheckForNull private byte[] toByteArray(java.net.URL url)
-
-