public class ThumbnailRegistryEntry
extends org.apache.batik.ext.awt.image.spi.AbstractRegistryEntry
implements org.apache.batik.ext.awt.image.spi.URLRegistryEntry, org.apache.batik.util.ParsedURLProtocolHandler
Modifier and Type | Class and Description |
---|---|
private static class |
ThumbnailRegistryEntry.InternalParsedURLData
URL representation for internal URLs.
|
Modifier and Type | Field and Description |
---|---|
private static int |
counter
Object counter
|
private static it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<java.lang.ref.SoftReference<java.awt.image.RenderedImage>> |
images
The image cache.
|
static java.lang.String |
INTERNAL_MIME_TYPE
Mime type
|
static java.lang.String |
INTERNAL_PREFIX
ELKI internal thumbnail protocol prefix
|
static java.lang.String |
INTERNAL_PROTOCOL
ELKI internal thumbnail protocol id.
|
private static Logging |
LOG
The logger class.
|
static float |
PRIORITY
The priority of this entry.
|
Constructor and Description |
---|
ThumbnailRegistryEntry()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocolHandled() |
static org.apache.batik.ext.awt.image.renderable.Filter |
handleURL(org.apache.batik.util.ParsedURL url)
Statically handle the URL access.
|
org.apache.batik.ext.awt.image.renderable.Filter |
handleURL(org.apache.batik.util.ParsedURL url,
boolean needRawData) |
boolean |
isCompatibleURL(org.apache.batik.util.ParsedURL url) |
static boolean |
isCompatibleURLStatic(org.apache.batik.util.ParsedURL url)
Test for a compatible URL.
|
org.apache.batik.util.ParsedURLData |
parseURL(org.apache.batik.util.ParsedURL basepurl,
java.lang.String urlStr) |
org.apache.batik.util.ParsedURLData |
parseURL(java.lang.String urlStr) |
static int |
registerImage(java.awt.image.RenderedImage img)
Put an image into the repository (note: the repository is only keeping a
weak reference!)
|
getFormatName, getMimeTypes, getPriority, getStandardExtensions
public static final java.lang.String INTERNAL_PROTOCOL
public static final java.lang.String INTERNAL_PREFIX
public static final java.lang.String INTERNAL_MIME_TYPE
public static final float PRIORITY
private static final Logging LOG
private static final it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<java.lang.ref.SoftReference<java.awt.image.RenderedImage>> images
private static int counter
public ThumbnailRegistryEntry()
public static int registerImage(java.awt.image.RenderedImage img)
img
- Image to putpublic boolean isCompatibleURL(org.apache.batik.util.ParsedURL url)
isCompatibleURL
in interface org.apache.batik.ext.awt.image.spi.URLRegistryEntry
public static boolean isCompatibleURLStatic(org.apache.batik.util.ParsedURL url)
url
- URLpublic org.apache.batik.ext.awt.image.renderable.Filter handleURL(org.apache.batik.util.ParsedURL url, boolean needRawData)
handleURL
in interface org.apache.batik.ext.awt.image.spi.URLRegistryEntry
public static org.apache.batik.ext.awt.image.renderable.Filter handleURL(org.apache.batik.util.ParsedURL url)
url
- URL to accesspublic org.apache.batik.util.ParsedURLData parseURL(java.lang.String urlStr)
parseURL
in interface org.apache.batik.util.ParsedURLProtocolHandler
public org.apache.batik.util.ParsedURLData parseURL(org.apache.batik.util.ParsedURL basepurl, java.lang.String urlStr)
parseURL
in interface org.apache.batik.util.ParsedURLProtocolHandler
public java.lang.String getProtocolHandled()
getProtocolHandled
in interface org.apache.batik.util.ParsedURLProtocolHandler
Copyright © 2019 ELKI Development Team. License information.