/[fenfire]/fenfire/org/fenfire/view/lava/FenPDFContext.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/lava/FenPDFContext.java

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

revision 1.9 by mudyc, Fri May 16 09:40:27 2003 UTC revision 1.10 by mudyc, Fri May 16 11:12:11 2003 UTC
# Line 31  public class FenPDFContext implements Line 31  public class FenPDFContext implements
31       AbstractMainNode2D.Render,       AbstractMainNode2D.Render,
32       AbstractMainNode2D.DoMouse       AbstractMainNode2D.DoMouse
33  {  {
34      public static boolean dbg = true;      public static boolean dbg = false;
35      private static void p(String s) { System.out.println("FenPDFContext:: "+s); }      private static void p(String s) { System.out.println("FenPDFContext:: "+s); }
36    
37      private Fen fen;      private Fen fen;
# Line 94  public class FenPDFContext implements Line 94  public class FenPDFContext implements
94          rigthLink = false;          rigthLink = false;
95          setOrigin = false;          setOrigin = false;
96          unSetOrigin = false;          unSetOrigin = false;
97    
98            if (main instanceof MainNode2D);
99            else return;
100                    
101                    
102          // what to do if accursed is NULL?          // what to do if accursed is NULL?
103          if (accursed==null) {          if (accursed==null) {
             if (main instanceof MainNode2D)  
104                  cursor = true;                  cursor = true;
105              // fishey doesn't need cursor (currently)              // fishey doesn't need cursor (currently)
106          }          }
# Line 144  public class FenPDFContext implements Line 146  public class FenPDFContext implements
146      }      }
147    
148    
149      public boolean doMouse(MouseEvent e, VobScene oldVS) {      public boolean doMouse(MouseEvent e, VobScene oldVS,
150                               AbstractMainNode2D main) {
151            // only in canvas
152            if (main instanceof MainNode2D);
153            else return false;
154    
155    
156          if (e.getID() != MouseEvent.MOUSE_CLICKED) return false;          if (e.getID() != MouseEvent.MOUSE_CLICKED) return false;
157          int cs = oldVS.coords.getCSAt(0, e.getX(), e.getY(), null);          int cs = oldVS.coords.getCSAt(0, e.getX(), e.getY(), null);
158          Object obKey = oldVS.matcher.getKey(cs);          Object obKey = oldVS.matcher.getKey(cs);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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