44 |
|
|
45 |
public static int effigy = 0; |
public static int effigy = 0; |
46 |
|
|
47 |
protected View2D view; |
protected View2D view2d; |
48 |
|
|
49 |
public View2D getView() { return view; } |
public View2D getView2D() { return view2d; } |
50 |
|
|
51 |
public NodeType2D(View2D view) { |
public NodeType2D(View2D view2d) { |
52 |
this.view = view; |
this.view2d = view2d; |
53 |
} |
} |
54 |
|
|
55 |
public Object getSize(Object linkId, Object anchor, |
public Object getSize(Object linkId, Object anchor, |
90 |
// w, h); |
// w, h); |
91 |
vs.matcher.add(into, box2paper, "BUOYPAP"); |
vs.matcher.add(into, box2paper, "BUOYPAP"); |
92 |
|
|
93 |
view.render(vs, plane, into, into, box2paper); |
view2d.render(vs, plane, into, into, box2paper); |
94 |
|
|
95 |
return vs.coords.translate(into, w/2f, h/2f); |
return vs.coords.translate(into, w/2f, h/2f); |
96 |
} |
} |
101 |
Object plane = p.first; |
Object plane = p.first; |
102 |
Rectangle rect = (Rectangle)p.second; |
Rectangle rect = (Rectangle)p.second; |
103 |
|
|
104 |
return new MainNode2D(plane, view, |
return new MainNode2D(plane, view2d, |
105 |
rect.x+rect.width/2f, |
rect.x+rect.width/2f, |
106 |
rect.y+rect.height/2f, 1); |
rect.y+rect.height/2f, 1); |
107 |
} |
} |