|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.hci.r3.util.graphics.ImageCache
public class ImageCache
This software is distributed under the BSD License.
| Nested Class Summary | |
|---|---|
class |
ImageCache.ImageObject
|
| Method Summary | |
|---|---|
void |
addBufferedImageToCache(java.io.File pathToImage,
java.awt.image.BufferedImage bImg)
Use this only if you need to explicitly add something to the cache. |
java.awt.image.BufferedImage |
getBufferedImage(java.io.File pathToImage)
Normally, just call this function to get a BufferedImage and put it in the cache. |
static ImageCache |
getInstance()
|
PlanarImage |
getPlanarImage(java.io.File pathToImage)
|
static java.awt.image.BufferedImage |
loadBufferedImage(java.io.File path)
|
static java.awt.image.BufferedImage |
loadBufferedImage(java.net.URL resource)
|
static PlanarImage |
loadPlanarImage(java.io.File path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ImageCache getInstance()
public static java.awt.image.BufferedImage loadBufferedImage(java.io.File path)
path -
public static java.awt.image.BufferedImage loadBufferedImage(java.net.URL resource)
resource - Allows you to get images from the JAR.
public static PlanarImage loadPlanarImage(java.io.File path)
path -
public void addBufferedImageToCache(java.io.File pathToImage,
java.awt.image.BufferedImage bImg)
File - public java.awt.image.BufferedImage getBufferedImage(java.io.File pathToImage)
pathToImage -
public PlanarImage getPlanarImage(java.io.File pathToImage)
pathToImage -
|
Copyright 2006 Stanford University | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||