/[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.11 by tjl, Tue Oct 8 07:34:54 2002 UTC revision 1.12 by tjl, Tue Oct 15 13:29:18 2002 UTC
# Line 60  String rcsid = "$Id$"; Line 60  String rcsid = "$Id$";
60          int w = size.width, h = size.height;          int w = size.width, h = size.height;
61    
62          // The coordinate system where the lines start          // The coordinate system where the lines start
63          int orig = sc.coordsys(into, origKey, 0, 0, 0, 2, 2);          int orig = sc.orthoCS(into, origKey, 0, 0, 0, 2, 2);
64    
65          // The coordinate systems of the dimensions          // The coordinate systems of the dimensions
66          int[] targ = {          int[] targ = {
67              sc.coordsys(into, dimKeys[0], 0, w, 0, 2, 2),              sc.orthoCS(into, dimKeys[0], 0, w, 0, 2, 2),
68              sc.coordsys(into, dimKeys[1], 0, 0, h, 2, 2),              sc.orthoCS(into, dimKeys[1], 0, 0, h, 2, 2),
69              sc.coordsys(into, dimKeys[2], 0, w, h, 2, 2)              sc.orthoCS(into, dimKeys[2], 0, w, h, 2, 2)
70          };          };
71    
72          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
73              sc.map.put(conn, targ[i], orig);              sc.map.put(conn, targ[i], orig);
74              int cs_box = sc.coordsys(targ[i], boxKey, 1, 0, 0, w, h);              int cs_box = sc.orthoCS(targ[i], boxKey, 1, 0, 0, w, h);
75              sc.map.put(bg, cs_box);              sc.map.put(bg, cs_box);
76                            
77              int cs = sc.coordsys(targ[i], dimKeys[i], 0, 5, 5, 2, 2);              int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, 2, 2);
78              int cs_wh = sc.coords.coordsys(0, 0, 0, 0, w-10, h-10);              int cs_wh = sc.coords.ortho(0, 0, 0, 0, w-10, h-10);
79              ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);              ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);
80              sc.map.put(new TextVob(style, dims[i].name), cs, cs_wh);              sc.map.put(new TextVob(style, dims[i].name), cs, cs_wh);
81          }          }
# Line 87  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), vh = style.getHeight(1.6f);              float vw = style.getWidth(name, 1.6f), vh = style.getHeight(1.6f);
89              float vx = rect.width - vw - 10;              float vx = rect.width - vw - 10;
90              int cs = sc.coordsys(into, viewKey, 0, vx, 10, 2, 2);              int cs = sc.orthoCS(into, viewKey, 0, vx, 10, 2, 2);
91              int cs_wh = sc.coords.coordsys(0, 0, 0, 0, vw, vh);              int cs_wh = sc.coords.ortho(0, 0, 0, 0, vw, vh);
92              ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);              ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);
93              sc.map.put(new TextVob(style, name), cs, cs_wh);              sc.map.put(new TextVob(style, name), cs, cs_wh);
94          }          }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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