26 |
public class PPCanvasCursor implements BuoyViewMainNode { |
public class PPCanvasCursor implements BuoyViewMainNode { |
27 |
private static final String rcsid = "$Id$"; |
private static final String rcsid = "$Id$"; |
28 |
public static boolean dbg = false; |
public static boolean dbg = false; |
29 |
|
private static void p(String s) { if (dbg) pa(s); } |
30 |
private static void pa(String s) { System.out.println("PPCanvasCursor::"+s); } |
private static void pa(String s) { System.out.println("PPCanvasCursor::"+s); } |
31 |
|
|
32 |
// Geometry |
// Geometry |
143 |
|
|
144 |
private int c2fCS = -1; |
private int c2fCS = -1; |
145 |
public void renderMain(VobScene vs, int into) { |
public void renderMain(VobScene vs, int into) { |
146 |
|
p("con: "+ context); |
147 |
Object node = context.getAccursed(); |
Object node = context.getAccursed(); |
148 |
Object paper = node; |
Object paper = node; |
149 |
if (RDFUtil.isNodeType(fen, node, PP.Paper)) { |
if (RDFUtil.isNodeType(fen, node, PP.Note)) { |
150 |
paper = fen.constgraph.find1_X11(node, PP.contains); |
paper = fen.constgraph.find1_X11(node, PP.contains); |
151 |
|
|
152 |
// draw "cursor" |
// draw "cursor" |
161 |
size[0]/10, |
size[0]/10, |
162 |
size[1]/10); |
size[1]/10); |
163 |
//vs.put(new LineVob(0,0,0,1, java.awt.Color.white), cursor); |
//vs.put(new LineVob(0,0,0,1, java.awt.Color.white), cursor); |
164 |
pa("Cursor"); |
p("Cursor"); |
165 |
} |
} |
166 |
|
|
167 |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |
if (GraphicsAPI.getInstance() instanceof GLAPI) { |