25 |
*/ |
*/ |
26 |
|
|
27 |
package org.fenfire.spanimages; |
package org.fenfire.spanimages; |
28 |
|
import org.fenfire.spanimages.gl.*; |
29 |
import org.nongnu.alph.*; |
import org.nongnu.alph.*; |
30 |
|
|
31 |
/** The central interface for creating vobs that contain |
/** The central interface for creating vobs that contain |
38 |
* the imagespan contains vector data. |
* the imagespan contains vector data. |
39 |
*/ |
*/ |
40 |
public abstract class SpanImageFactory { |
public abstract class SpanImageFactory { |
41 |
|
private static SpanImageFactory instance; |
42 |
|
|
43 |
public static SpanImageFactory getDefaultInstance() { |
public static SpanImageFactory getDefaultInstance() { |
44 |
return null; |
// XXX This is wrong - need a mux to handle images! |
45 |
|
if(instance == null) |
46 |
|
instance = new DefaultSpanImageFactory( |
47 |
|
new PageScrollBlockImager()); |
48 |
|
return instance; |
49 |
} |
} |
50 |
|
|
51 |
abstract public SpanImageVob getSpanImageVob(ImageSpan s); |
abstract public SpanImageVob getSpanImageVob(ImageSpan s); |