|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector<E> java.util.Stack<Object> net.sourceforge.pavlov.randommedia.MediaCache net.sourceforge.pavlov.randommedia.ImageCache
public class ImageCache
Loads and holds a bunch of image files whose locations are specified relative to a fixed base URL.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ImageCache(RandomURLProvider p,
int size)
Creates a new ImageCache instance. |
Method Summary | |
---|---|
ContentLoader |
getContentLoader()
Describe getContentLoader method here. |
CacheObject |
getRandomCacheObject()
Describe getRandomCacheObject method here. |
ImageIcon |
getRandomImageIcon(int size)
Gets a random image icon of the given size from the cache. |
CacheObject |
getRandomUncachedObject()
Describe getRandomUncachedObject method here. |
ImageIcon |
getUncachedRandomImageIcon(int size)
Describe getUncachedRandomImageIcon method here. |
CacheObject |
loadCacheObject()
Describe loadCacheObject method here. |
protected static Object |
nullNotifier(String msg)
If there's a null in an intermediate step, let the user know. |
Methods inherited from class net.sourceforge.pavlov.randommedia.MediaCache |
---|
add, clearCache, getObject, manageCache, startLoading |
Methods inherited from class java.util.Stack |
---|
empty, peek, pop, push, search |
Methods inherited from class java.util.Vector |
---|
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public ImageCache(RandomURLProvider p, int size)
ImageCache
instance.
p
- a RandomURLProvider
valuesize
- an int
valueMethod Detail |
---|
public CacheObject loadCacheObject()
loadCacheObject
method here.
CacheObject
valuepublic ImageIcon getUncachedRandomImageIcon(int size)
getUncachedRandomImageIcon
method here.
size
- an int
value
ImageIcon
valuepublic CacheObject getRandomUncachedObject()
getRandomUncachedObject
method here.
CacheObject
valuepublic CacheObject getRandomCacheObject()
getRandomCacheObject
method here.
CacheObject
valuepublic ImageIcon getRandomImageIcon(int size)
size
- an int
value
ImageIcon
valueprotected static Object nullNotifier(String msg)
msg
- a String
value
Object
valuepublic ContentLoader getContentLoader()
getContentLoader
method here.
ContentLoader
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |