43 |
private float tmp[] = new float[2]; |
private float tmp[] = new float[2]; |
44 |
|
|
45 |
static public class MainNode2DFactory implements Factory { |
static public class MainNode2DFactory implements Factory { |
|
public float zoom; |
|
46 |
protected MouseMultiplexer mouseController; |
protected MouseMultiplexer mouseController; |
47 |
public MainNode2DFactory(float zoom, |
public MainNode2DFactory(MouseMultiplexer mouse) { |
|
MouseMultiplexer mouse) { |
|
|
this.zoom = zoom; |
|
48 |
this.mouseController = mouse; |
this.mouseController = mouse; |
49 |
} |
} |
50 |
public AbstractMainNode2D create(Object plane, View2D view2d, |
public AbstractMainNode2D create(Object plane, View2D view2d, |
51 |
float panx, float pany) { |
float panx, float pany, float zoom) { |
52 |
return new MainNode2D(plane, view2d, |
return new MainNode2D(plane, view2d, |
53 |
new SimpleFocus(panx, pany), zoom, |
new SimpleFocus(panx, pany), zoom, |
54 |
mouseController); |
mouseController); |