|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomerojava.util.PixelsCache
public class PixelsCache
Caches Plane2D data, within a given pixels set, that have been rendered.
The number of entries in the cache at any given time is
maxEntries
at most, being maxEntries
the greatest
integer such that maxEntries
*planeSize
<=
cacheSize
If maxEntries
is reached and an entry has to be added, we
discard a previous entry to make room for the new one.
Constructor Summary | |
---|---|
PixelsCache(int cacheSize,
int planeSize)
Creates a new instance. |
Method Summary | |
---|---|
void |
resetCacheSize(int size)
Resets the size of the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PixelsCache(int cacheSize, int planeSize)
cacheSize
- The size, in bytes, of the cache. Must be positive.planeSize
- The size, in bytes, of an image. Must be positive.Method Detail |
---|
public void resetCacheSize(int size)
size
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.