public class PicReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PicReader() |
Modifier and Type | Method and Description |
---|---|
java.awt.Dimension |
determinePicSize(Pic pic) |
int |
getFilesInDirCount(int rid,
java.lang.String dir)
Get the number of pictures files in a directory.
|
static java.lang.String |
getFullPath(PicManFacade pmf,
Pic pic) |
PicManFacade |
getPicMan() |
int |
getQueueDepth()
Return how many people are waiting to read a pic
|
Thumbnail |
getThumbNail(Pic pic,
int height,
java.lang.String label) |
Thumbnail |
getXThumb(int thumbHeight) |
java.awt.image.BufferedImage |
readPic(Pic pic) |
java.awt.image.BufferedImage |
readPic(java.lang.String path) |
void |
setPicMan(PicManFacade pmf) |
void |
setThumbCache(ThumbCache thumbCache)
Set the reference to the ThumbCache manager
|
public void setPicMan(PicManFacade pmf)
public void setThumbCache(ThumbCache thumbCache)
thumbCache
- The thumbcachepublic PicManFacade getPicMan()
public int getQueueDepth()
public int getFilesInDirCount(int rid, java.lang.String dir)
rid
- The Root id to querydir
- The directory to read. i.e. "2003/20030428"public Thumbnail getXThumb(int thumbHeight)
public static java.lang.String getFullPath(PicManFacade pmf, Pic pic)
public java.awt.Dimension determinePicSize(Pic pic)
public java.awt.image.BufferedImage readPic(Pic pic)
public java.awt.image.BufferedImage readPic(java.lang.String path)