26 |
* Written by Benja Fallenstein |
* Written by Benja Fallenstein |
27 |
*/ |
*/ |
28 |
package org.fenfire.view; |
package org.fenfire.view; |
|
import org.fenfire.view.lava.*; |
|
29 |
import org.fenfire.swamp.*; |
import org.fenfire.swamp.*; |
30 |
import org.nongnu.alph.*; |
import org.nongnu.alph.*; |
31 |
import org.nongnu.libvob.*; |
import org.nongnu.libvob.*; |
37 |
* <em>Should</em> take a width and do linebreaking; |
* <em>Should</em> take a width and do linebreaking; |
38 |
* currently, places text as a single very long line. |
* currently, places text as a single very long line. |
39 |
*/ |
*/ |
40 |
public class TextNodeView extends TextHandler implements NodeFunction { |
public class TextNodeView extends org.fenfire.view.lava.TextHandler |
41 |
|
implements NodeFunction { |
42 |
public static final String rcsid = "$Id$"; |
public static final String rcsid = "$Id$"; |
43 |
public static boolean dbg = false; |
public static boolean dbg = false; |
44 |
private static void pa(String s) { System.out.println("TextNodeView::"+s); } |
private static void pa(String s) { System.out.println("TextNodeView::"+s); } |
60 |
private boolean hasContext = true; |
private boolean hasContext = true; |
61 |
public void setHasNoContext() { hasContext = false; } |
public void setHasNoContext() { hasContext = false; } |
62 |
|
|
63 |
private FenPDFContext context = null; |
private org.fenfire.view.lava.FenPDFContext context = null; |
64 |
public void setContext(FenPDFContext context) { this.context = context; } |
public void setContext(org.fenfire.view.lava.FenPDFContext context) |
65 |
|
{ this.context = context; } |
66 |
|
|
67 |
public Object f(ConstGraph g, Object node) { |
public Object f(ConstGraph g, Object node) { |
68 |
if (hasContext) { |
if (hasContext) { |