|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.util.SoftReferenceCache
org.apache.batik.ext.awt.color.NamedProfileCache
public class NamedProfileCache
This class manages a cache of soft references to named profiles that we have already loaded.
| Field Summary |
|---|
| Fields inherited from class org.apache.batik.util.SoftReferenceCache |
|---|
map |
| Constructor Summary | |
|---|---|
NamedProfileCache()
Let people create there own caches. |
|
| Method Summary | |
|---|---|
void |
clear(String profileName)
Clear the entry for String. |
static NamedProfileCache |
getDefaultCache()
|
boolean |
isDone(String profileName)
Check if request(profileName) will return immediately with the ICCColorSpaceExt. |
boolean |
isPresent(String profileName)
Check if request(profileName) will return with a ICCColorSpaceExt (not putting you on the hook for it). |
void |
put(String profileName,
ICCColorSpaceExt bi)
Associate bi with profileName. |
ICCColorSpaceExt |
request(String profileName)
If this returns null then you are now 'on the hook'. |
| Methods inherited from class org.apache.batik.util.SoftReferenceCache |
|---|
clearImpl, flush, isDoneImpl, isPresentImpl, putImpl, requestImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedProfileCache()
| Method Detail |
|---|
public static NamedProfileCache getDefaultCache()
public boolean isPresent(String profileName)
public boolean isDone(String profileName)
public ICCColorSpaceExt request(String profileName)
public void clear(String profileName)
public void put(String profileName,
ICCColorSpaceExt bi)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||