/[fenfire]/fenfire/org/fenfire/view/buoy/TransclusionConnector.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/TransclusionConnector.java

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

revision 1.17 by tjl, Wed Jul 30 09:11:46 2003 UTC revision 1.18 by tjl, Wed Jul 30 12:38:32 2003 UTC
# Line 148  public static final String rcsid = "$Id$ Line 148  public static final String rcsid = "$Id$
148                          if(dbg) pa("No plane!");                          if(dbg) pa("No plane!");
149                          continue;                          continue;
150                      }                      }
151                      Object anchor = new Triple(plane, getRect(node), null);                      Object anchor = getAnchor(plane, node);
152                      l.link(-1, cs, normalNodeNodeType,                      l.link(-1, cs, normalNodeNodeType,
153                              new Pair(node, span.getScrollBlock()),                              new Pair(node, span.getScrollBlock()),
154                              anchor);                              anchor);
# Line 161  public static final String rcsid = "$Id$ Line 161  public static final String rcsid = "$Id$
161      }      }
162    
163      public float mx = 1.1f, my = 1.1f;      public float mx = 1.1f, my = 1.1f;
164      protected java.awt.Rectangle getRect(Object node) {      protected View2D.Anchor getAnchor(Object plane, Object node) {
165          if (node == null) throw new Error("Impossible!");          if (node == null) throw new Error("Impossible!");
166          float x = RDFUtil.getFloat(fen.graph, node, CANVAS2D.x);          float x = RDFUtil.getFloat(fen.graph, node, CANVAS2D.x);
167          float y = RDFUtil.getFloat(fen.graph, node, CANVAS2D.y);          float y = RDFUtil.getFloat(fen.graph, node, CANVAS2D.y);
# Line 171  public static final String rcsid = "$Id$ Line 171  public static final String rcsid = "$Id$
171          float h = p.getHeight();          float h = p.getHeight();
172          int bw = (int)(mx * w);          int bw = (int)(mx * w);
173          int bh = (int)(my * h);          int bh = (int)(my * h);
174          return new java.awt.Rectangle((int)(x-bw), (int)(y-bh),          return new View2D.Anchor(plane,
175                                        (int)w+2*bw,                              x-bw, y-bh, w+2*bw, h+2*bh,
176                                        (int)h+2*bh);                              node);
177      }      }
178  }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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