/[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.24 by benja, Mon Jun 23 12:25:52 2003 UTC revision 1.25 by benja, Mon Jun 23 18:16:19 2003 UTC
# Line 26  AbstractMainNode2D.java Line 26  AbstractMainNode2D.java
26    
27  package org.fenfire.view.buoy;  package org.fenfire.view.buoy;
28  import org.fenfire.view.*;  import org.fenfire.view.*;
   
29  import org.fenfire.view.View2D;  import org.fenfire.view.View2D;
30    import org.fenfire.util.ControlBinding;
31    
32  import org.nongnu.libvob.*;  import org.nongnu.libvob.*;
33  import org.nongnu.libvob.impl.DefaultVobMatcher;  import org.nongnu.libvob.impl.DefaultVobMatcher;
34  import org.nongnu.libvob.buoy.*;  import org.nongnu.libvob.buoy.*;
# Line 47  public abstract class AbstractMainNode2D Line 48  public abstract class AbstractMainNode2D
48      protected Object plane;      protected Object plane;
49      public Object getPlane() { return plane; }      public Object getPlane() { return plane; }
50    
51        /** The controller associated with this main node. */
52        protected ControlBinding controller;
53    
54      /** An object representing a focus on a 2D plane.      /** An object representing a focus on a 2D plane.
55       *  The SimpleFocus implementation below just stores       *  The SimpleFocus implementation below just stores
56       *  an X and Y coordinate, but other implementations       *  an X and Y coordinate, but other implementations
# Line 105  public abstract class AbstractMainNode2D Line 109  public abstract class AbstractMainNode2D
109      protected float boxw, boxh;      protected float boxw, boxh;
110    
111      public AbstractMainNode2D(Object plane, View2D view2d,      public AbstractMainNode2D(Object plane, View2D view2d,
112                                Focus focus) {                                Focus focus, ControlBinding controller ) {
113          this.plane = plane; this.view2d = view2d;          this.plane = plane; this.view2d = view2d;
114          this.focus = focus;          this.focus = focus; this.controller = controller;
115      }      }
116    
117    
# Line 235  public abstract class AbstractMainNode2D Line 239  public abstract class AbstractMainNode2D
239    
240    
241      public boolean mouse(MouseEvent e, VobScene oldVobScene) {      public boolean mouse(MouseEvent e, VobScene oldVobScene) {
242          //return controller.mouse(e, oldVobScene);          /*return*/ controller.handleEvent(this, e, oldVobScene);
243          return false;          return false;
244      }      }
245    

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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