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); |
45 |
final NodeFunction nodeContent; |
final NodeFunction nodeContent; |
46 |
final TextStyle style; |
final TextStyle style; |
47 |
private FenPDFContext context = null; |
// private FenPDFContext context = null; |
48 |
|
|
49 |
|
/* |
50 |
public void setContext(FenPDFContext context) { |
public void setContext(FenPDFContext context) { |
51 |
this.context = context; |
this.context = context; |
52 |
} |
} |
53 |
|
*/ |
54 |
|
|
55 |
public RSTText(NodeFunction nodeContent, |
public RSTText(NodeFunction nodeContent, |
56 |
TextStyle style, |
TextStyle style, |
62 |
} |
} |
63 |
|
|
64 |
public Object f(ConstGraph g, Object node) { |
public Object f(ConstGraph g, Object node) { |
65 |
if (context == null) throw new Error("No context set"); |
// if (context == null) throw new Error("No context set"); |
66 |
|
|
67 |
context.isToBePlaced(node, this); |
// context.isToBePlaced(node, this); |
68 |
if (dbg) p("placed, offs: "+cursorOffset); |
if (dbg) p("placed, offs: "+cursorOffset); |
69 |
|
|
70 |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |
Enfilade1D enf = (Enfilade1D)nodeContent.f(g, node); |