| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private RTTexture | |
| private static final int | |
| private RectanglePacker | |
| private HashMap | |
| private static final int | |
| private RectanglePacker | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv RTTexture | |
| pack-priv boolean | Returns: true means to caller needs to render to rect to initialize the content.the hash key for the image key, Rectangle the rect image. On input, width and height determine the requested
texture space. On ouput, the x and y the location in the texture rect, Background the background used to validated if the correct image was found background, Shape the shape used to validated if the correct image was found shape, Graphics the graphics to flush if the texture needs to be restarted g)Search the cache for a background image representing the arguments. |
| pack-priv boolean | Returns: True if the image size is less than maxThe image width w, int The image height h)Check if the image size is to big to be stored in the cache |
| backingStore | back to summary |
|---|---|
| private RTTexture backingStore | |
| HEIGHT | back to summary |
|---|---|
| private static final int HEIGHT | |
| hPacker | back to summary |
|---|---|
| private RectanglePacker hPacker | |
| imageMap | back to summary |
|---|---|
| private HashMap<Integer, RegionImageCache. | |
| MAX_SIZE | back to summary |
|---|---|
| private static final int MAX_SIZE | |
| vPacker | back to summary |
|---|---|
| private RectanglePacker vPacker | |
| WIDTH | back to summary |
|---|---|
| private static final int WIDTH | |
| RegionImageCache | back to summary |
|---|---|
| pack-priv RegionImageCache(final ResourceFactory factory) | |
| getBackingStore | back to summary |
|---|---|
| pack-priv RTTexture getBackingStore() | |
| getImageLocation | back to summary |
|---|---|
| pack-priv boolean getImageLocation(Integer key, Rectangle rect, Background background, Shape shape, Graphics g) Search the cache for a background image representing the arguments. When this method succeeds the x and y coordinates in rect are adjust to the location in the backing store when the image is stored. If a failure occurred the rect is set to empty to indicate the caller to disable caching.
| |
| isImageCachable | back to summary |
|---|---|
| pack-priv boolean isImageCachable(int w, int h) Check if the image size is to big to be stored in the cache
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Background | |
| pack-priv int | |
| pack-priv Shape | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| background | back to summary |
|---|---|
| pack-priv Background background | |
| height | back to summary |
|---|---|
| pack-priv int height | |
| shape | back to summary |
|---|---|
| pack-priv Shape shape | |
| width | back to summary |
|---|---|
| pack-priv int width | |
| x | back to summary |
|---|---|
| pack-priv int x | |
| y | back to summary |
|---|---|
| pack-priv int y | |
| CachedImage | back to summary |
|---|---|
| pack-priv CachedImage(Rectangle rect, Background background, Shape shape) | |
| equals | back to summary |
|---|---|
| public boolean equals(int width, int height, Background background, Shape shape) | |