public class ImageFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
count
The Image counter used for assigning the numerical portion of an ObjID
|
Modifier | Constructor and Description |
---|---|
private |
ImageFactory()
Restricts factory instantiation since all class data is static
|
Modifier and Type | Method and Description |
---|---|
static Image |
produce(java.io.File imageFile,
java.util.Map<ObjID,NetPuzlObject> cache)
Produces an Image with a unique object ID and the given parameters
|
private static int count
private ImageFactory()
public static Image produce(java.io.File imageFile, java.util.Map<ObjID,NetPuzlObject> cache)
imageFile
- The file to produce the Image fromcache
- The Map to cache the Image in