/[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.20 by mudyc, Tue May 13 19:52:08 2003 UTC revision 1.21 by mudyc, Thu May 15 15:12:00 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    
36    import org.nongnu.libvob.vobs.*;
37    
38  /** A BuoyViewMainNode showing a 2D plane rendered through  /** A BuoyViewMainNode showing a 2D plane rendered through
39   *  a View2D. This class implements the keyboard and mouse   *  a View2D. This class implements the keyboard and mouse
40   *  command for moving on the spatial plane.   *  command for moving on the spatial plane.
# Line 76  public class MainNode2D extends Abstract Line 78  public class MainNode2D extends Abstract
78      }      }
79    
80      public void renderMain(VobScene vs, int into) {      public void renderMain(VobScene vs, int into) {
81            context.mainNodeToBeRender(this);
82          vs.coords.getSqSize(into, tmp);          vs.coords.getSqSize(into, tmp);
83          boxw = tmp[0]; boxh = tmp[1];          boxw = tmp[0]; boxh = tmp[1];
84          box2screen = into;          box2screen = into;
# Line 86  public class MainNode2D extends Abstract Line 89  public class MainNode2D extends Abstract
89          vs.matcher.add(box2screen, box2paper, "BOX2PAPER");          vs.matcher.add(box2screen, box2paper, "BOX2PAPER");
90          setZoomPan(vs, box2paper);          setZoomPan(vs, box2paper);
91          view2d.render(vs, plane, into, into, box2paper);          view2d.render(vs, plane, into, into, box2paper);
92            
93            if (cursor) {
94                /*
95                //int paper2box = vs.invertCS(box2paper, "main_canvasview_INv");
96    
97                int paper2screen = vs.concatCS(box2screen, "main_canvasview_conc",
98                                               box2paper);//   paper2box);
99                int cursor = vs.orthoBoxCS(paper2screen, "CURSOR", 0,
100                                           panX, panY, 1,1, 30, 39);
101                */
102                int cursor = vs.orthoBoxCS(into, "CURSOR", 0,
103                                           tmp[0]/2, tmp[1]/2, 1,1, tmp[0]/12, tmp[1]/12);
104                vs.put(new LineVob(0,0,0,1, java.awt.Color.darkGray), cursor);
105                if(dbg) p("Cursor");            
106            } else p("not cursor!");
107      }      }
108    
109      protected void setZoomPan(VobScene vs, int mainFrame) {      protected void setZoomPan(VobScene vs, int mainFrame) {

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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