public final class ImageDescriptor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ImageDescriptor.LoadTimeConsumer |
Modifier and Type | Field and Description |
---|---|
ImageLoader.Dimension2DDouble |
origUsrSize |
double |
scale |
ImageType |
type |
Constructor and Description |
---|
ImageDescriptor(double scale) |
ImageDescriptor(java.lang.String path,
double scale,
ImageType type) |
ImageDescriptor(java.lang.String path,
double scale,
ImageType type,
boolean original) |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
java.awt.Image |
load(boolean useCache) |
java.awt.Image |
load(boolean useCache,
java.lang.Class<?> resourceClass) |
java.awt.Image |
loadFromStream(java.io.InputStream stream,
java.net.URL url,
java.lang.String cacheKey) |
static void |
setLoadTimeConsumer(ImageDescriptor.LoadTimeConsumer loadTimeConsumer) |
java.lang.String |
toString() |
public final double scale
public final ImageType type
public final ImageLoader.Dimension2DDouble origUsrSize
public ImageDescriptor(java.lang.String path, double scale, ImageType type)
public ImageDescriptor(double scale)
public ImageDescriptor(java.lang.String path, double scale, ImageType type, boolean original)
public static void setLoadTimeConsumer(ImageDescriptor.LoadTimeConsumer loadTimeConsumer)
public static void clearCache()
public java.awt.Image load(boolean useCache) throws java.io.IOException
java.io.IOException
public java.awt.Image load(boolean useCache, java.lang.Class<?> resourceClass) throws java.io.IOException
java.io.IOException
public java.awt.Image loadFromStream(java.io.InputStream stream, java.net.URL url, java.lang.String cacheKey) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object