/[fenfire]/fenfire/org/fenfire/view/buoy/NodeType2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/NodeType2D.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Sat Apr 26 08:41:04 2003 UTC revision 1.5 by tjl, Sun Apr 27 11:40:27 2003 UTC
# Line 44  public class NodeType2D implements BuoyV Line 44  public class NodeType2D implements BuoyV
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,
# Line 90  public class NodeType2D implements BuoyV Line 90  public class NodeType2D implements BuoyV
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      }      }
# Line 101  public class NodeType2D implements BuoyV Line 101  public class NodeType2D implements BuoyV
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      }      }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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