[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/view Cell1DBuoyHook.java
From: |
Matti Katila |
Subject: |
[Gzz-commits] gzz/gzz/view Cell1DBuoyHook.java |
Date: |
Fri, 10 Jan 2003 11:10:30 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Matti Katila <address@hidden> 03/01/10 11:10:30
Modified files:
gzz/view : Cell1DBuoyHook.java
Log message:
1-n issue
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/Cell1DBuoyHook.java.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: gzz/gzz/view/Cell1DBuoyHook.java
diff -u gzz/gzz/view/Cell1DBuoyHook.java:1.6
gzz/gzz/view/Cell1DBuoyHook.java:1.7
--- gzz/gzz/view/Cell1DBuoyHook.java:1.6 Sun Nov 3 23:35:39 2002
+++ gzz/gzz/view/Cell1DBuoyHook.java Fri Jan 10 11:10:30 2003
@@ -33,7 +33,7 @@
* XXX Tjl Doc
*/
public class Cell1DBuoyHook implements CellPlacementHook {
-public static final String rcsid = "$Id: Cell1DBuoyHook.java,v 1.6 2002/11/04
04:35:39 tjl Exp $";
+public static final String rcsid = "$Id: Cell1DBuoyHook.java,v 1.7 2003/01/10
16:10:30 mudyc Exp $";
public static boolean dbg = true;
private static void pa(String s) { System.err.println(s); }
@@ -45,7 +45,7 @@
* @param c The cell which is the center of the new buoy.
* @param connectedFrom The cell which was placed
*/
- void buoy(int anchor, Cell c, Cell connectedFrom);
+ void buoy(int anchor, Cell c, Cell connectedFrom, int count);
}
private Dim d_clone;
@@ -62,6 +62,9 @@
}
public void placed(Cell c, VobScene sc, int box, ViewContext context) {
+ // there can be more than one buoy..
+ int rights = 0;
+ int lefts = 0;
for(Cell assoc = c; assoc != null;
assoc = assoc.s(d_clone)) {
Cell left = assoc.s(d_assoc, -1);
@@ -69,12 +72,13 @@
if(dbg) pa("BUOYS: LINKS "+c);
if(dbg) pa("left: "+left+" right: "+right);
if(right != null) {
- rightfloater.buoy(box, right.h(d_clone), c);
+ rightfloater.buoy(box, right.h(d_clone), c, rights);
+ rights++;
}
if(left != null) {
- leftfloater.buoy(box, left.h(d_clone), c);
+ leftfloater.buoy(box, left.h(d_clone), c, lefts);
+ lefts++;
}
}
-
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gzz/view Cell1DBuoyHook.java,
Matti Katila <=