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

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

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

revision 1.15 by benja, Fri Jun 27 22:18:41 2003 UTC revision 1.16 by mudyc, Thu Jul 17 16:28:19 2003 UTC
# Line 119  public static final String rcsid = "$Id$ Line 119  public static final String rcsid = "$Id$
119      public int dx = 30, dy = 30;      public int dx = 30, dy = 30;
120      protected java.awt.Rectangle getRect(Object node) {      protected java.awt.Rectangle getRect(Object node) {
121          if (node == null) throw new Error("Impossible!");          if (node == null) throw new Error("Impossible!");
122          int x = RDFUtil.getInt(fen.graph, node, CANVAS2D.x);          float x = RDFUtil.getFloat(fen.graph, node, CANVAS2D.x);
123          int y = RDFUtil.getInt(fen.graph, node, CANVAS2D.y);          float y = RDFUtil.getFloat(fen.graph, node, CANVAS2D.y);
124          Placeable p = (Placeable)nodeView.f(fen.constgraph, node);          Placeable p = (Placeable)nodeView.f(fen.constgraph, node);
125          return new java.awt.Rectangle(x-dx, y-dy,          return new java.awt.Rectangle((int)(x-dx), (int)(y-dy),
126                                        (int)p.getWidth()+dx+dx,                                        (int)p.getWidth()+dx+dx,
127                                        (int)p.getHeight()+dy+dy);                                        (int)p.getHeight()+dy+dy);
128      }      }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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