37 |
* currently, places text as a single very long line. |
* currently, places text as a single very long line. |
38 |
*/ |
*/ |
39 |
public class TextNodeView implements NodeFunction { |
public class TextNodeView implements NodeFunction { |
40 |
|
public static final String rcsid = "$Id$"; |
41 |
|
public static boolean dbg = false; |
42 |
|
private static void pa(String s) { System.out.println("TextNodeView::"+s); } |
43 |
|
|
44 |
final NodeFunction nodeContent; |
final NodeFunction nodeContent; |
45 |
final TextStyle style; |
final TextStyle style; |
62 |
final float width = style.getWidth(s, scale); |
final float width = style.getWidth(s, scale); |
63 |
final float height = style.getHeight(scale); |
final float height = style.getHeight(scale); |
64 |
|
|
65 |
|
if(dbg) { |
66 |
|
pa("Textnodeview: '"+s+"' "+width+" "+height); |
67 |
|
} |
68 |
|
|
69 |
return new org.nongnu.libvob.lava.placeable.Placeable() { |
return new org.nongnu.libvob.lava.placeable.Placeable() { |
70 |
public void place(VobScene vs, int into) { |
public void place(VobScene vs, int into) { |
71 |
int scaled = vs.orthoCS(into, objNode, 0, |
int scaled = vs.orthoCS(into, objNode, 0, |