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.lava.*; |
30 |
import org.fenfire.util.ControlBinding; |
import org.fenfire.util.ControlBinding; |
31 |
|
|
32 |
import org.nongnu.libvob.*; |
import org.nongnu.libvob.*; |
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. |
41 |
*/ |
*/ |
42 |
public abstract class AbstractMainNode2D implements BuoyViewMainNode { |
public abstract class AbstractMainNode2D implements BuoyViewMainNode, FastView { |
43 |
public static boolean dbg = false; |
public static boolean dbg = false; |
44 |
private static void p(String s) { System.out.println("AbstractMainNode2D:: "+s); } |
private static void p(String s) { System.out.println("AbstractMainNode2D:: "+s); } |
45 |
|
|
246 |
public void chgFast(VobScene oldVobScene) { |
public void chgFast(VobScene oldVobScene) { |
247 |
clipPan(); |
clipPan(); |
248 |
setZoomPan(oldVobScene, box2screen); |
setZoomPan(oldVobScene, box2screen); |
249 |
|
|
250 |
|
View2D view = getView2D(); |
251 |
|
while (view.getChildView2D() != null) |
252 |
|
view = view.getChildView2D(); |
253 |
|
if (view instanceof FastView) |
254 |
|
((FastView)view).chgFast(oldVobScene); |
255 |
} |
} |
256 |
|
|
257 |
public Object getNodeOnPlane(VobScene oldVobScene, float x, float y) { |
public Object getNodeOnPlane(VobScene oldVobScene, float x, float y) { |