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

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

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

revision 1.5 by tjl, Wed Jul 30 09:11:46 2003 UTC revision 1.6 by mudyc, Wed Jul 30 15:04:22 2003 UTC
# Line 50  public abstract class AbstractNodeType2D Line 50  public abstract class AbstractNodeType2D
50    
51      public BuoyViewMainNode createMainNode(Object linkId,      public BuoyViewMainNode createMainNode(Object linkId,
52                                             Object anchor) {                                             Object anchor) {
53          Triple t = (Triple)anchor;          View2D.Anchor a = (View2D.Anchor)anchor;
54          Object plane = t.first;          return mainNodeFactory.create(a.plane, view2d,
55          Rectangle rect = (Rectangle)t.second;                                        a.x+a.w/2f,
56                                          a.y+a.h/2f);
         return mainNodeFactory.create(plane, view2d,  
                               rect.x+rect.width/2f,  
                               rect.y+rect.height/2f);  
57      }      }
58  }  }

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

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