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

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

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

revision 1.2 by tjl, Sat Apr 26 08:31:41 2003 UTC revision 1.3 by tjl, Sun Apr 27 11:40:27 2003 UTC
# Line 23  public static final String rcsid = "$Id$ Line 23  public static final String rcsid = "$Id$
23      public static boolean hackForTesting = false;      public static boolean hackForTesting = false;
24    
25      private Fen fen;      private Fen fen;
26      private View2D view;      private View2D view2d;
27      private BuoyViewNodeType nodeType;      private BuoyViewNodeType nodeType;
28      public PPConnector(Fen fen, View2D view) {      public PPConnector(Fen fen, View2D view2d) {
29          this.fen = fen;          this.fen = fen;
30          this.view = view;          this.view2d = view2d;
31          this.nodeType = new NodeType2D(view);          this.nodeType = new NodeType2D(view2d);
32      }      }
33    
34      public void addBuoys(VobScene vs, int parentCs,      public void addBuoys(VobScene vs, int parentCs,
# Line 36  public static final String rcsid = "$Id$ Line 36  public static final String rcsid = "$Id$
36                           BuoyLinkListener l) {                           BuoyLinkListener l) {
37          if(!(mainNode instanceof MainNode2D)) return;          if(!(mainNode instanceof MainNode2D)) return;
38          MainNode2D mn2d = (MainNode2D)mainNode;          MainNode2D mn2d = (MainNode2D)mainNode;
39          if(mn2d.getView() != view && !hackForTesting) return;          if(mn2d.getView2D() != view2d && !hackForTesting) return;
40    
41          DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;          DefaultVobMatcher m = (DefaultVobMatcher)vs.matcher;
42          for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) {          for(Iterator i=m.getKeys(parentCs).iterator(); i.hasNext();) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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