30 |
|
|
31 |
/** Base class for the classes holding scrollblock images. |
/** Base class for the classes holding scrollblock images. |
32 |
* Contains some necessary trappings. |
* Contains some necessary trappings. |
33 |
|
* The getSingleImage method should only be called with |
34 |
|
* entire image spans, i.e. objects obtained |
35 |
|
* from imageSpan.getSuperImageSpan(), to allow proper caching. |
36 |
*/ |
*/ |
37 |
public abstract class ScrollBlockImager { |
public abstract class ScrollBlockImager { |
38 |
static File __tmp = new File("./tmpimg"); |
/** The directory to store the cached images in (in mipzip format). |
39 |
|
*/ |
40 |
|
static private File __tmp = new File("./tmpimg"); |
41 |
|
|
42 |
|
/** Get the directory to store the cached images in (in mipzip format). |
43 |
|
*/ |
44 |
static File tmp() { |
static File tmp() { |
45 |
if(!__tmp.exists()) |
if(!__tmp.exists()) |
46 |
__tmp.mkdir(); |
__tmp.mkdir(); |
62 |
return res.toString(); |
return res.toString(); |
63 |
} |
} |
64 |
|
|
65 |
public abstract SingleImage getSingleImage(ImageSpan img, PoolManager poolManager) ; |
public abstract SingleImage getSingleImage(ImageSpan img) ; |
66 |
|
|
67 |
} |
} |