|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jdesktop.swingx.mapviewer.TileCache
public class TileCache extends Object
An implementation only class for now. For internal use only.
| Field Summary | |
|---|---|
private Map |
bytemap
|
private LinkedList |
bytemapAccessQueue
|
private int |
bytesize
|
private int |
imagesize
|
private Map |
imgmap
|
private LinkedList |
imgmapAccessQueue
|
| Constructor Summary | |
TileCache()
|
|
| Method Summary | |
|---|---|
private void
|
addToImageCache(URI uri, BufferedImage img)
|
BufferedImage
|
get(URI uri)
Returns a buffered image for the requested URI from the cache. |
void
|
needMoreMemory()
Request that the cache free up some memory. |
private void
|
p(String string)
|
void
|
put(URI uri, byte[] bimg, BufferedImage img)
Put a tile image into the cache. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private Map bytemap
private LinkedList bytemapAccessQueue
private int bytesize
private int imagesize
private Map imgmap
private LinkedList imgmapAccessQueue
| Constructor Detail |
|---|
public TileCache()
| Method Detail |
|---|
private void addToImageCache(URI uri, BufferedImage img)
public BufferedImage get(URI uri)
uri - URI of the image previously put in the cache
public void needMoreMemory()
private void p(String string)
public void put(URI uri, byte[] bimg, BufferedImage img)
uri
- URI of image that is being stored in the cachebimg
- bytes of the compressed image, ie: the image file that was loaded over the networkimg
- image to store in the cache
Groovy Documentation