public class SwtSvgImageUtil extends Object
Constructor and Description |
---|
SwtSvgImageUtil() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.swt.graphics.Image |
getImage(org.eclipse.swt.widgets.Display display,
ClassLoader classLoader,
String filename,
int width,
int height)
Get an image using the provided classLoader and path.
|
static SwtUniversalImage |
getImage(org.eclipse.swt.widgets.Display display,
String location)
Load image from several sources.
|
static SwtUniversalImage |
getImageAsResource(org.eclipse.swt.widgets.Display display,
String location)
Load image from several sources.
|
static SwtUniversalImage |
getMissingImage(org.eclipse.swt.widgets.Display display)
Get the image for when all other fallbacks have failed.
|
static SwtUniversalImage |
getUniversalImage(org.eclipse.swt.widgets.Display display,
ClassLoader classLoader,
String filename)
Load image from several sources.
|
public static SwtUniversalImage getMissingImage(org.eclipse.swt.widgets.Display display)
display
- the device to render the image topublic static SwtUniversalImage getImageAsResource(org.eclipse.swt.widgets.Display display, String location)
public static org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.widgets.Display display, ClassLoader classLoader, String filename, int width, int height)
display
- the device to render the image toclassLoader
- the classLoader to use to load the image resourcefilename
- the path to the imagewidth
- the width to scale the image toheight
- the height to scale the image topublic static SwtUniversalImage getUniversalImage(org.eclipse.swt.widgets.Display display, ClassLoader classLoader, String filename)
public static SwtUniversalImage getImage(org.eclipse.swt.widgets.Display display, String location)
Copyright © 2019 Hitachi Vantara. All rights reserved.