2 |
|
|
3 |
package org.fenfire.view.lava; |
package org.fenfire.view.lava; |
4 |
import org.fenfire.view.*; |
import org.fenfire.view.*; |
5 |
|
import org.fenfire.view.buoy.*; |
6 |
import org.fenfire.swamp.*; |
import org.fenfire.swamp.*; |
7 |
import org.fenfire.modules.pp.*; |
import org.fenfire.modules.pp.*; |
8 |
import org.fenfire.modules.pp.lava.*; |
import org.fenfire.modules.pp.lava.*; |
21 |
* RULE!: context must be always left so that inserting |
* RULE!: context must be always left so that inserting |
22 |
* text can be done easily. |
* text can be done easily. |
23 |
*/ |
*/ |
24 |
public class FenPDFContext implements ContextNodeView.Context { |
public class FenPDFContext implements |
25 |
|
ContextNodeView.Context, |
26 |
|
AbstractMainNode2D.Render |
27 |
|
{ |
28 |
public static boolean dbg = true; |
public static boolean dbg = true; |
29 |
private static void p(String s) { System.out.println("FenPDFContext:: "+s); } |
private static void p(String s) { System.out.println("FenPDFContext:: "+s); } |
30 |
|
|
49 |
} |
} |
50 |
|
|
51 |
|
|
52 |
|
/** call back from ContextNodeView */ |
53 |
public void isCurrent(Object node, ContextNodeView nv) { |
public void isCurrent(Object node, ContextNodeView nv) { |
54 |
if (node==accursed) { |
if (node==accursed) { |
55 |
nv.setUnCached(); |
nv.setUnCached(); |
58 |
} |
} |
59 |
} |
} |
60 |
|
|
61 |
|
/** call back from RSTText */ |
62 |
public void isToBePlaced(Object node, TextHandler text) { |
public void isToBePlaced(Object node, TextHandler text) { |
63 |
p("n"+node+" == "+accursed); |
p("n"+node+" == "+accursed); |
64 |
if (node==accursed) { |
if (node==accursed) { |
70 |
} |
} |
71 |
} |
} |
72 |
|
|
73 |
|
/** call back from AbstractMainNodeView2D */ |
74 |
|
public void mainNodeToBeRender(AbstractMainNode2D main) { |
75 |
|
if (accursed==null) main.setCursor(true); |
76 |
|
else main.setCursor(false); |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
private Object rstNode; |
private Object rstNode; |
81 |
public void setRSTNode(Object node) { |
public void setRSTNode(Object node) { |