/[fenfire]/fenfire/org/fenfire/view/buoy/MainNode2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/MainNode2D.java

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

revision 1.18 by mudyc, Wed May 7 16:04:54 2003 UTC revision 1.19 by mudyc, Thu May 8 17:30:19 2003 UTC
# Line 33  import org.nongnu.libvob.buoy.*; Line 33  import org.nongnu.libvob.buoy.*;
33    
34  import java.awt.event.MouseEvent;  import java.awt.event.MouseEvent;
35    
 import org.fenfire.util.*;  
 import org.fenfire.vocab.*;  
   
36  /** A BuoyViewMainNode showing a 2D plane rendered through  /** A BuoyViewMainNode showing a 2D plane rendered through
37   *  a View2D. This class implements the keyboard and mouse   *  a View2D. This class implements the keyboard and mouse
38   *  command for moving on the spatial plane.   *  command for moving on the spatial plane.
# Line 44  public class MainNode2D extends Abstract Line 41  public class MainNode2D extends Abstract
41      public static boolean dbg = true;      public static boolean dbg = true;
42      private static void p(String s) { System.out.println("MainNode2D:: "+s); }      private static void p(String s) { System.out.println("MainNode2D:: "+s); }
43    
     /** Ugly hack!!! XXX  
      */  
     static public org.fenfire.Fen fen = null;  
       
44      protected float zoom;      protected float zoom;
45    
46      private float tmp[] = new float[2];      private float tmp[] = new float[2];
# Line 92  public class MainNode2D extends Abstract Line 85  public class MainNode2D extends Abstract
85          box2paper = vs.coords.orthoBox(0,0,0,0,0,0,0,0);          box2paper = vs.coords.orthoBox(0,0,0,0,0,0,0,0);
86          vs.matcher.add(box2screen, box2paper, "BOX2PAPER");          vs.matcher.add(box2screen, box2paper, "BOX2PAPER");
87          setZoomPan(vs, box2paper);          setZoomPan(vs, box2paper);
   
         if (fen != null)  
             if (RDFUtil.isNodeType(fen, plane, PP.Paper) ||  
                 RDFUtil.isNodeType(fen, plane, RST.Canvas)) ;  
             else throw new Error("plane is NOT a container!");  
   
88          view2d.render(vs, plane, into, into, box2paper);          view2d.render(vs, plane, into, into, box2paper);
89      }      }
90    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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