/[fenfire]/fenfire/org/fenfire/modules/pp/PPCanvasCursor.java
ViewVC logotype

Diff of /fenfire/org/fenfire/modules/pp/PPCanvasCursor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mudyc, Tue Apr 15 14:43:42 2003 UTC revision 1.15 by mudyc, Tue Apr 15 18:09:18 2003 UTC
# Line 26  import java.awt.event.*; Line 26  import java.awt.event.*;
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
# Line 142  private static final String rcsid = "$Id Line 143  private static final String rcsid = "$Id
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"
# Line 159  private static final String rcsid = "$Id Line 161  private static final String rcsid = "$Id
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) {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26