/[fenfire]/fenfire/org/fenfire/modules/pp/Pp.java
ViewVC logotype

Diff of /fenfire/org/fenfire/modules/pp/Pp.java

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

revision 1.33 by benja, Thu Apr 24 22:59:34 2003 UTC revision 1.34 by tjl, Fri Apr 25 11:19:39 2003 UTC
# Line 30  import java.rmi.server.*; Line 30  import java.rmi.server.*;
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;
# Line 254  public static final String rcsid = "$Id$ Line 253  public static final String rcsid = "$Id$
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      }      }
# Line 264  public static final String rcsid = "$Id$ Line 263  public static final String rcsid = "$Id$
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;

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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