/[gzz]/gzz/gzz/modules/pp2/PPCanvasCursor.java
ViewVC logotype

Diff of /gzz/gzz/modules/pp2/PPCanvasCursor.java

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

revision 1.6 by mudyc, Sat Feb 8 10:19:20 2003 UTC revision 1.7 by mudyc, Sun Feb 9 07:14:17 2003 UTC
# Line 39  import java.awt.event.*; Line 39  import java.awt.event.*;
39    
40  /** XXX  /** XXX
41   */   */
42  public class PPCanvasCursor extends AbstractAnimationNode {  public class PPCanvasCursor implements BuoyViewMainNode {
43      private static final String rcsid = "$Id$";    private static final String rcsid = "$Id$";  
44      public static boolean dbg = false;      public static boolean dbg = false;
45      private static void pa(String s) { System.out.println("PPCanvasCursor:"+s); }      private static void pa(String s) { System.out.println("PPCanvasCursor:"+s); }
46    
# Line 141  public class PPCanvasCursor extends Abst Line 141  public class PPCanvasCursor extends Abst
141    
142    
143      public void renderMain(VobScene vs, int into) {      public void renderMain(VobScene vs, int into) {
         int mainctr = vs.translateCS(0, "MAINVPCTR",  
                                      centerX(vs), mainY + mainHeight/2);  
   
         int frameCS = vs.orthoBoxCS(mainctr, "MAINVP", 10,  
                                     (-mainWidth)/2, -mainHeight/2, 1, 1,  
                                     mainWidth, mainHeight);  
         vs.activate(frameCS);  
                           
         // cell to frame CS  
144          int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);          int c2fCS = vs.coords.ortho(0, 0, 0, 0, 10, 10);
145          vs.matcher.add(frameCS, c2fCS, "C2F");          vs.matcher.add(into, c2fCS, "C2F");
146          SinglePaper.i(avc, d, window, current).render(vs, frameCS, c2fCS);          SinglePaper.i(avc, d, window, current).render(vs, into, c2fCS);
147          hook.placed(current, vs, into, (ViewContext)avc);          hook.placed(current, vs, into, (ViewContext)avc);
   
148      }      }
149    
150      public void keystroke(String s) {      public void keystroke(String s) {

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

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