/[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.3 by benja, Fri Sep 13 11:05:39 2002 UTC revision 1.4 by tjl, Wed Sep 25 14:45:43 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 =          int orig = sc.coords.coordsys(into, 0, 0, 0, w, h);
63              sc.coords.coordsys(into, origKey, 0, 0, 0, w, h);          sc.matcher.add(orig, origKey);
64    
65          // The coordinate systems of the dimensions          // The coordinate systems of the dimensions
66          int[] targ = {          int[] targ = {
67              sc.coords.coordsys(into, dimKeys[0], 0, w, 0, w, h),              sc.coords.coordsys(into, 0, w, 0, w, h),
68              sc.coords.coordsys(into, dimKeys[1], 0, 0, h, w, h),              sc.coords.coordsys(into, 0, 0, h, w, h),
69              sc.coords.coordsys(into, dimKeys[2], 0, w, h, w, h)              sc.coords.coordsys(into, 0, w, h, w, h)
70          };          };
71    
72          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
73                sc.matcher.add(targ[i], dimKeys[i]);
74              sc.map.put(conn, targ[i], orig);              sc.map.put(conn, targ[i], orig);
75              sc.map.put(bg, targ[i]);              sc.map.put(bg, targ[i]);
76              int cs = sc.coords.coordsys(targ[i], dimKeys[i], 0, 0, 0,              int cs = sc.coords.coordsys(targ[i], 0, 0, 0,
77                                          style.getWidth(dims[i].name, 1),                                          style.getWidth(dims[i].name, 1),
78                                          style.getHeight(1));                                          style.getHeight(1));
79                sc.matcher.add(cs, dimKeys[i]);
80              sc.map.put(new TextVob(style, dims[i].name), cs);              sc.map.put(new TextVob(style, dims[i].name), cs);
81          }          }
82    
# Line 85  String rcsid = "$Id$"; Line 87  String rcsid = "$Id$";
87              sc.coords.getRenderInfo(into).getExtRect(rect);              sc.coords.getRenderInfo(into).getExtRect(rect);
88              float vw = style.getWidth(name, 1.6f) + 10, vh = style.getHeight(1.6f);              float vw = style.getWidth(name, 1.6f) + 10, vh = style.getHeight(1.6f);
89              float vx = rect.width - vw;              float vx = rect.width - vw;
90              int cs = sc.coords.coordsys(into, viewKey, 0, vx, 10, vw, vh);              int cs = sc.coords.coordsys(into, 0, vx, 10, vw, vh);
91                sc.matcher.add(cs, viewKey);
92              sc.map.put(new TextVob(style, 1.6f, name), cs);              sc.map.put(new TextVob(style, 1.6f, name), cs);
93          }          }
94      }      }

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

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