public final class SVGLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SVGLoader.SvgColorPatcher
Deprecated.
use
instead |
static interface |
SVGLoader.SvgElementColorPatcher |
static interface |
SVGLoader.SvgElementColorPatcherProvider |
Modifier and Type | Field and Description |
---|---|
static int |
ICON_DEFAULT_SIZE |
Modifier and Type | Method and Description |
---|---|
static ImageLoader.Dimension2DDouble |
getDocumentSize(java.net.URL url,
java.io.InputStream stream,
double scale) |
static double |
getMaxZoomFactor(java.net.URL url,
java.io.InputStream stream,
ScaleContext ctx) |
static java.awt.Image |
load(java.io.InputStream stream,
float scale) |
static java.awt.Image |
load(java.net.URL url,
float scale) |
static java.awt.Image |
load(java.net.URL url,
java.io.InputStream stream,
double scale) |
static java.awt.Image |
load(java.net.URL url,
java.io.InputStream stream,
double scale,
ImageLoader.Dimension2DDouble docSize) |
static java.awt.Image |
load(java.net.URL url,
java.io.InputStream stream,
ScaleContext ctx,
double width,
double height)
Loads an image with the specified
width and height (in user space). |
static <T extends java.awt.image.BufferedImage> |
loadHiDPI(java.net.URL url,
java.io.InputStream stream,
JBUI.ScaleContext ctx)
Deprecated.
|
static <T extends java.awt.image.BufferedImage> |
loadHiDPI(java.net.URL url,
java.io.InputStream stream,
ScaleContext ctx)
Loads a HiDPI-aware image of the size specified in the svg file.
|
static <T extends java.awt.image.BufferedImage> |
loadHiDPI(java.net.URL url,
java.io.InputStream stream,
ScaleContext ctx,
double width,
double height)
Loads a HiDPI-aware image with the specified
width and height (in user space). |
static java.awt.image.BufferedImage |
loadWithoutCache(java.net.URL url,
java.io.InputStream stream,
double scale,
ImageLoader.Dimension2DDouble docSize) |
static void |
setColorPatcher(SVGLoader.SvgColorPatcher colorPatcher)
Deprecated.
|
static void |
setColorPatcherProvider(SVGLoader.SvgElementColorPatcherProvider colorPatcher) |
public static final int ICON_DEFAULT_SIZE
public static java.awt.Image load(java.net.URL url, float scale) throws java.io.IOException
java.io.IOException
public static java.awt.Image load(java.io.InputStream stream, float scale) throws java.io.IOException
java.io.IOException
public static java.awt.Image load(java.net.URL url, java.io.InputStream stream, double scale) throws java.io.IOException
java.io.IOException
public static java.awt.Image load(java.net.URL url, java.io.InputStream stream, double scale, ImageLoader.Dimension2DDouble docSize) throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage loadWithoutCache(java.net.URL url, java.io.InputStream stream, double scale, ImageLoader.Dimension2DDouble docSize) throws java.io.IOException
java.io.IOException
public static java.awt.Image load(java.net.URL url, java.io.InputStream stream, ScaleContext ctx, double width, double height) throws java.io.IOException
width
and height
(in user space). Size specified in svg file is ignored.java.io.IOException
public static <T extends java.awt.image.BufferedImage> T loadHiDPI(java.net.URL url, java.io.InputStream stream, ScaleContext ctx, double width, double height) throws java.io.IOException
width
and height
(in user space). Size specified in svg file is ignored.java.io.IOException
public static <T extends java.awt.image.BufferedImage> T loadHiDPI(java.net.URL url, java.io.InputStream stream, ScaleContext ctx) throws java.io.IOException
java.io.IOException
@Deprecated public static <T extends java.awt.image.BufferedImage> T loadHiDPI(java.net.URL url, java.io.InputStream stream, JBUI.ScaleContext ctx) throws java.io.IOException
loadHiDPI(URL, InputStream, ScaleContext)
java.io.IOException
public static ImageLoader.Dimension2DDouble getDocumentSize(java.net.URL url, java.io.InputStream stream, double scale) throws java.io.IOException
java.io.IOException
public static double getMaxZoomFactor(java.net.URL url, java.io.InputStream stream, ScaleContext ctx) throws java.io.IOException
java.io.IOException
@Deprecated public static void setColorPatcher(SVGLoader.SvgColorPatcher colorPatcher)
setColorPatcherProvider(SvgElementColorPatcherProvider)
insteadpublic static void setColorPatcherProvider(SVGLoader.SvgElementColorPatcherProvider colorPatcher)