/[gzz]/gzz/gzz/view/Cell1DBuoyHook.java
ViewVC logotype

Diff of /gzz/gzz/view/Cell1DBuoyHook.java

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

revision 1.2 by benja, Tue Oct 29 21:21:25 2002 UTC revision 1.3 by tjl, Wed Oct 30 19:10:17 2002 UTC
# Line 35  public static final String rcsid = "$Id$ Line 35  public static final String rcsid = "$Id$
35      public static boolean dbg = true;      public static boolean dbg = true;
36      private static void pa(String s) { System.err.println(s); }      private static void pa(String s) { System.err.println(s); }
37    
38      Dim d_clone;      /** A simple interface for placing buoys.
39      Dim d_assoc;       */
40      Buoy4Floater leftfloater;      public interface Floater {
41      Buoy4Floater rightfloater;          /** Create a buoy.
42             * @param b The box of the anchor.
43             * @param c The cell which is the center of the new buoy.
44             * @param connectedFrom The cell which was placed
45             */
46            void buoy(Box b, Cell c, Cell connectedFrom);
47        }
48    
49        private Dim d_clone;
50        private Dim d_assoc;
51        private Floater leftfloater;
52        private Floater rightfloater;
53    
54      public Cell1DBuoyHook(Buoy4Floater leftfloater, Buoy4Floater rightfloater,      public Cell1DBuoyHook(Floater leftfloater, Floater rightfloater,
55                          Dim d_clone, Dim d_assoc) {                          Dim d_clone, Dim d_assoc) {
56          this.leftfloater = leftfloater;          this.leftfloater = leftfloater;
57          this.rightfloater = rightfloater;          this.rightfloater = rightfloater;
# Line 56  public static final String rcsid = "$Id$ Line 67  public static final String rcsid = "$Id$
67              if(dbg) pa("BUOYS: LINKS");              if(dbg) pa("BUOYS: LINKS");
68              if(dbg) pa("left: "+left+" right: "+right);              if(dbg) pa("left: "+left+" right: "+right);
69              if(right != null) {              if(right != null) {
70                  /*                  rightfloater.buoy(b, right.h(d_clone), c);
                 int cs = rightfloater.buoyCoordsys(anchor,  
                             keyer.getBrowseEntry(  
                                 right.getRootclone(), assoc, right));  
                 placeBuoyContents(vs, cs, right);  
                 */  
71              }              }
72              if(left != null) {              if(left != null) {
73                  /*                  leftfloater.buoy(b, left.h(d_clone), c);
                 int cs = leftfloater.buoyCoordsys(anchor,  
                             keyer.getBrowseEntry(  
                                 left.getRootclone(), assoc, left));  
                 placeBuoyContents(vs, cs, left);  
                 */  
74              }              }
75          }          }
76    

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