/[gzz]/gzz/gzz/modules/pp/PPView2.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp/PPView2.java

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

revision 1.4 by tjl, Sun Nov 3 18:28:16 2002 UTC revision 1.5 by tjl, Sun Nov 3 18:41:46 2002 UTC
# Line 16  public class PPView2 implements View { Line 16  public class PPView2 implements View {
16       */       */
17      public float zoom = 1;      public float zoom = 1;
18    
19        /** The current virtual-paper coordinates.
20         */
21        public float panx=0, pany=0;
22    
23      /** The scale of the background.      /** The scale of the background.
24       * bgscale in paper coordinates = 1 in background coords.       * bgscale in paper coordinates = 1 in background coords.
25       */       */
# Line 113  public class PPView2 implements View { Line 117  public class PPView2 implements View {
117                          new Putter(f.getFrame()),                          new Putter(f.getFrame()),
118                          placeContent,                          placeContent,
119                          true);                          true);
120              else              else {
121                    (new Putter(f.getContent())).run();
122                    (new Putter(f.getFrame())).run();
123                    (new Putter(f.getBlank())).run();
124                  placeContent.run();                  placeContent.run();
125                }
126          }          }
127      }      }
128    
# Line 150  public class PPView2 implements View { Line 158  public class PPView2 implements View {
158       */       */
159      public void setZoomPan(VobScene vs) {      public void setZoomPan(VobScene vs) {
160          int cs = vs.matcher.getCS("C2F");          int cs = vs.matcher.getCS("C2F");
161          vs.coords.setOrthoParams(cs, 0, 0, 0, zoom, zoom);          vs.coords.setOrthoParams(cs, 0, -panx*zoom, -pany*zoom, zoom, zoom);
162      }      }
163  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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