/[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.7 by benja, Fri Apr 25 12:49:29 2003 UTC revision 1.8 by tjl, Fri Apr 25 13:54:58 2003 UTC
# Line 72  public class MainNode2D implements BuoyV Line 72  public class MainNode2D implements BuoyV
72      private int focusFrame = -1;      private int focusFrame = -1;
73      private int box2paper = -1;      private int box2paper = -1;
74      private float w, h;      private float w, h;
75    
76      public void renderMain(VobScene vs, int into) {      public void renderMain(VobScene vs, int into) {
77          vs.coords.getSqSize(into, tmp);          vs.coords.getSqSize(into, tmp);
78          w = tmp[0]; h = tmp[1];          w = tmp[0]; h = tmp[1];
# Line 84  public class MainNode2D implements BuoyV Line 85  public class MainNode2D implements BuoyV
85    
86          view.render(vs, plane, into, into, box2paper);          view.render(vs, plane, into, into, box2paper);
87      }      }
88    
89        /** Cause the changes to the zooming and panning variables
90         * to be shown in the given vobscene.
91         * This changes the parameters of the coordinate systems
92         * created by render().
93         */
94        private void setZoomPan(VobScene vs, int mainFrame) {
95            DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;
96            vs.coords.setOrthoBoxParams(box2paper, 0,
97                            panX-w/zoom/2, panY-h/zoom/2,
98                                        1/zoom, 1/zoom, w, h);
99        }
100    
101      public void keystroke(String s) {      public void keystroke(String s) {
102          // XXX          // XXX
103      }      }
# Line 153  public class MainNode2D implements BuoyV Line 167  public class MainNode2D implements BuoyV
167          return false;          return false;
168      }      }
169    
   
     /** Cause the changes to the zooming and panning variables  
      * to be shown in the given vobscene.  
      * This changes the parameters of the coordinate systems created by render().  
      */  
     private void setZoomPan(VobScene vs, int mainFrame) {  
         DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;  
         vs.coords.setOrthoBoxParams(box2paper, 0, panX-w*zoom/2, panY-h*zoom/2,  
                                     1/zoom, 1/zoom, w, h);  
     }  
170  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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