30 |
public class Pp implements BuoyLinkListener { |
public class Pp implements BuoyLinkListener { |
31 |
public static final String rcsid = "$Id$"; |
public static final String rcsid = "$Id$"; |
32 |
public static final boolean dbg = false; |
public static final boolean dbg = false; |
|
protected static void p(String s) { if(dbg) pa(s); } |
|
33 |
protected static void pa(String s) { System.out.println("Pp::"+s); } |
protected static void pa(String s) { System.out.println("Pp::"+s); } |
34 |
|
|
35 |
private static Pp pp; |
private static Pp pp; |
253 |
ArrayList realLinks = new ArrayList(); |
ArrayList realLinks = new ArrayList(); |
254 |
public void link(int dir, int anchorCS, BuoyViewNodeType otherNode, |
public void link(int dir, int anchorCS, BuoyViewNodeType otherNode, |
255 |
Object linkId, Object otherAnchor) { |
Object linkId, Object otherAnchor) { |
256 |
p("link!"); |
if(dbg) pa("link!"); |
257 |
realLinks.add(new Object[] { new Integer(dir), new Integer(anchorCS), |
realLinks.add(new Object[] { new Integer(dir), new Integer(anchorCS), |
258 |
otherNode, linkId, otherAnchor }); |
otherNode, linkId, otherAnchor }); |
259 |
} |
} |
263 |
*/ |
*/ |
264 |
private void linkReally(int dir, int anchorCS, BuoyViewNodeType otherNode, |
private void linkReally(int dir, int anchorCS, BuoyViewNodeType otherNode, |
265 |
Object linkId, Object otherAnchor) { |
Object linkId, Object otherAnchor) { |
266 |
p("linkReally!"); |
if(dbg) pa("linkReally!"); |
267 |
int anchorUnit = curVs.unitSqCS(anchorCS, "UN"); |
int anchorUnit = curVs.unitSqCS(anchorCS, "UN"); |
268 |
int anchorCenter = curVs.translateCS(anchorUnit, "TR55", 0.5f, 0.5f); |
int anchorCenter = curVs.translateCS(anchorUnit, "TR55", 0.5f, 0.5f); |
269 |
float r = ctrY * 0.9f; |
float r = ctrY * 0.9f; |