|
||||||||||
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,
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent bi)
Associate bi with profileName. |
org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent |
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)
request(profileName)
will return with a ICCColorSpaceExt
(not putting you on the hook for it). Note that it is possible
that this will return true but between this call and the call
to request the soft-reference will be cleared. So it
is still possible for request to return NULL, just much less
likely (you can always call 'clear' in that case).
public boolean isDone(String profileName)
request(profileName)
will return immediately with the
ICCColorSpaceExt. Note that it is possible that this will return
true but between this call and the call to request the
soft-reference will be cleared.
public org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent request(String profileName)
the
- profile namepublic void clear(String profileName)
public void put(String profileName, org.apache.xmlgraphics.java2d.color.ICCColorSpaceWithIntent bi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |