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.*; |
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 |
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 |
|
|
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 |
|
|