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; |
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 |
|
|