/[gzz]/gzz/gzz/view/DimDecorator.java
ViewVC logotype

Diff of /gzz/gzz/view/DimDecorator.java

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

revision 1.4 by tjl, Wed Sep 25 14:45:43 2002 UTC revision 1.5 by benja, Wed Sep 25 19:27:32 2002 UTC
# Line 59  String rcsid = "$Id$"; Line 59  String rcsid = "$Id$";
59          int w = size.width, h = size.height;          int w = size.width, h = size.height;
60    
61          // The coordinate system where the lines start          // The coordinate system where the lines start
62          int orig = sc.coords.coordsys(into, 0, 0, 0, w, h);          int orig = sc.coordsys(into, origKey, 0, 0, 0, w, h);
         sc.matcher.add(orig, origKey);  
63    
64          // The coordinate systems of the dimensions          // The coordinate systems of the dimensions
65          int[] targ = {          int[] targ = {
66              sc.coords.coordsys(into, 0, w, 0, w, h),              sc.coordsys(into, dimKeys[0], 0, w, 0, w, h),
67              sc.coords.coordsys(into, 0, 0, h, w, h),              sc.coordsys(into, dimKeys[1], 0, 0, h, w, h),
68              sc.coords.coordsys(into, 0, w, h, w, h)              sc.coordsys(into, dimKeys[2], 0, w, h, w, h)
69          };          };
70    
71          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
             sc.matcher.add(targ[i], dimKeys[i]);  
72              sc.map.put(conn, targ[i], orig);              sc.map.put(conn, targ[i], orig);
73              sc.map.put(bg, targ[i]);              sc.map.put(bg, targ[i]);
74              int cs = sc.coords.coordsys(targ[i], 0, 0, 0,              int cs = sc.coordsys(targ[i], dimKeys[i], 0, 0, 0,
75                                          style.getWidth(dims[i].name, 1),                                          style.getWidth(dims[i].name, 1),
76                                          style.getHeight(1));                                          style.getHeight(1));
             sc.matcher.add(cs, dimKeys[i]);  
77              sc.map.put(new TextVob(style, dims[i].name), cs);              sc.map.put(new TextVob(style, dims[i].name), cs);
78          }          }
79    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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