37 |
* the given node as text. |
* the given node as text. |
38 |
*/ |
*/ |
39 |
public class RSTText extends TextHandler implements NodeFunction { |
public class RSTText extends TextHandler implements NodeFunction { |
40 |
|
|
41 |
|
static public boolean dbg = false; |
42 |
private void p(String s) { System.out.println("RSTText:: "+s); } |
private void p(String s) { System.out.println("RSTText:: "+s); } |
43 |
|
|
44 |
final LineVob cursorVob = new LineVob(0, 0, 0, 1, java.awt.Color.black); |
final LineVob cursorVob = new LineVob(0, 0, 0, 1, java.awt.Color.black); |
63 |
if (context == null) throw new Error("No context set"); |
if (context == null) throw new Error("No context set"); |
64 |
|
|
65 |
context.isToBePlaced(node, this); |
context.isToBePlaced(node, this); |
66 |
p("placed, offs: "+cursorOffset); |
if (dbg) p("placed, offs: "+cursorOffset); |
67 |
|
|
68 |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
69 |
|
|
80 |
0, 0, height, height); |
0, 0, height, height); |
81 |
vs.put(vob, scaled); |
vs.put(vob, scaled); |
82 |
|
|
83 |
|
/* |
84 |
// doesn't work, could someone fix this? |
// doesn't work, could someone fix this? |
85 |
// I get "Error: CallistCoorded with non-glperformable." |
// I get "Error: CallistCoorded with non-glperformable." |
86 |
if(offs >= 0) { |
if(offs >= 0) { |
90 |
x,0, 1,1, 1, height); |
x,0, 1,1, 1, height); |
91 |
vs.map.put(cursorVob, cursor); |
vs.map.put(cursorVob, cursor); |
92 |
} |
} |
93 |
|
*/ |
94 |
} |
} |
95 |
public float getWidth() { return width; } |
public float getWidth() { return width; } |
96 |
public float getHeight() { return height; } |
public float getHeight() { return height; } |