4 |
import org.fenfire.*; |
import org.fenfire.*; |
5 |
import org.nongnu.libvob.*; |
import org.nongnu.libvob.*; |
6 |
import com.hp.hpl.mesa.rdf.jena.model.*; |
import com.hp.hpl.mesa.rdf.jena.model.*; |
7 |
|
|
8 |
|
import org.nongnu.alph.*; |
9 |
|
import org.nongnu.alph.impl.*; |
10 |
|
import java.util.List; |
11 |
import java.awt.*; |
import java.awt.*; |
12 |
|
|
13 |
public class DefaultNodeView extends NodeView { |
public class DefaultNodeView extends NodeView { |
21 |
} |
} |
22 |
|
|
23 |
public void place(Object node, VobScene vs, int box) { |
public void place(Object node, VobScene vs, int box) { |
24 |
text.place(vs, box, fen.txt.get(node)); |
Enfilade1D enf = fen.txt.get(node); |
25 |
|
List l = enf.getList(); |
26 |
|
if (l.get(0) instanceof TextSpan) |
27 |
|
text.place(vs, box, enf); |
28 |
|
else // PageSpan |
29 |
|
page.place(vs, box, enf); |
30 |
} |
} |
31 |
|
|
32 |
public void getSize(Object node, float[] size, float scale) { |
public void getSize(Object node, float[] size, float scale) { |