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

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

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

revision 1.36 by mudyc, Wed Jul 30 10:32:10 2003 UTC revision 1.37 by tjl, Sat Aug 2 08:21:47 2003 UTC
# Line 32  import org.nongnu.libvob.*; Line 32  import org.nongnu.libvob.*;
32  import org.nongnu.libvob.impl.DefaultVobMatcher;  import org.nongnu.libvob.impl.DefaultVobMatcher;
33  import org.nongnu.libvob.buoy.*;  import org.nongnu.libvob.buoy.*;
34    
 import java.awt.event.MouseEvent;  
   
35  /** A BuoyViewMainNode showing a 2D plane rendered through  /** A BuoyViewMainNode showing a 2D plane rendered through
36   *  a View2D. This class implements the keyboard and mouse   *  a View2D. This class implements the keyboard and mouse
37   *  command for moving on the spatial plane.   *  command for moving on the spatial plane.
# Line 209  public abstract class AbstractMainNode2D Line 207  public abstract class AbstractMainNode2D
207          return false;          return false;
208      }      }
209    
210      public boolean mouseClickHit(MouseEvent e, VobScene oldVobScene, float[] zout) {      public boolean mouseClickHit(VobMouseEvent e, VobScene oldVobScene, float[] zout) {
211          float[] pt = new float[] { e.getX(), e.getY(), 0 };          float[] pt = new float[] { e.getX(), e.getY(), 0 };
212          float[] sq = new float[2];          float[] sq = new float[2];
213          oldVobScene.coords.inverseTransformPoints3(          oldVobScene.coords.inverseTransformPoints3(
# Line 263  public abstract class AbstractMainNode2D Line 261  public abstract class AbstractMainNode2D
261          focus.setZoom(zoom);              focus.setZoom(zoom);    
262      }      }
263    
264      public boolean mouse(MouseEvent e, VobScene oldVobScene) {      public boolean mouse(VobMouseEvent e, VobScene oldVobScene) {
265          return controller.handleEvent(this, e, oldVobScene);          return controller.handleEvent(this, e, oldVobScene);
266      }      }
267    

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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