public class PerfoScanFolder extends FamilyImageFolder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SCAN_PATTERN |
static java.lang.String |
SCAN_IMAGE |
count, folder, MAX_IMAGE_IN_FOLDER
Constructor and Description |
---|
PerfoScanFolder(java.io.File folder)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
addNewImage(java.awt.Image image)
Store a new Image in the store, return the count number
|
java.io.File |
constructImageFile(int sequence)
construct the image file object
|
java.lang.String |
constructImageName(int sequence)
construct the image name from index
|
void |
deleteAllImages()
delete all images
|
int |
getFirstImageIndex()
find the first index in the image
|
int |
getImageCount()
count the number of images in folder assuming there are continuous
|
getFolder, loadImage
public static final java.lang.String SCAN_IMAGE
public static final java.lang.String DEFAULT_SCAN_PATTERN
public PerfoScanFolder(java.io.File folder)
folder
- public int getFirstImageIndex()
public void deleteAllImages()
public int addNewImage(java.awt.Image image) throws java.lang.Exception
image
- java.lang.Exception
public java.lang.String constructImageName(int sequence)
sequence
- public java.io.File constructImageFile(int sequence)
sequence
- public int getImageCount()
getImageCount
in interface IFamilyImageSeeker
getImageCount
in class FamilyImageFolder