/[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.15 by humppake, Mon Nov 18 10:28:16 2002 UTC revision 1.16 by humppake, Fri Nov 22 03:55:20 2002 UTC
# Line 65  String rcsid = "$Id$"; Line 65  String rcsid = "$Id$";
65          float w = size[0], h = size[1];          float w = size[0], h = size[1];
66    
67          // The coordinate system where the lines start          // The coordinate system where the lines start
68          int orig = sc.orthoCS(into, origKey, 0, 0, 0, 2, 2);          int orig = sc.orthoCS(into, origKey, 0, 0, 0, 1, 1);
69    
70          // The coordinate systems of the dimensions          // The coordinate systems of the dimensions
71          int[] targ = {          int[] targ = {
72              sc.orthoCS(into, dimKeys[0], 0, w, 0, 2, 2),              sc.translateCS(into, dimKeys[0], w, 0),
73              sc.orthoCS(into, dimKeys[1], 0, 0, h, 2, 2),              sc.translateCS(into, dimKeys[1], 0, h),
74              sc.orthoCS(into, dimKeys[2], 0, w, h, 2, 2)              sc.translateCS(into, dimKeys[2], w, h)
75          };          };
76    
77          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
# Line 79  String rcsid = "$Id$"; Line 79  String rcsid = "$Id$";
79              int cs_box = sc.orthoCS(targ[i], boxKey, 1, 0, 0, w, h);              int cs_box = sc.orthoCS(targ[i], boxKey, 1, 0, 0, w, h);
80              sc.map.put(bg, cs_box);              sc.map.put(bg, cs_box);
81                            
82              int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, 2, 2);              int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, h-10, h-10);
83              int cs_wh = sc.coords.ortho(0, 0, 0, 0, w-10, h-10);              sc.map.put(new TextVob(style, dims[i].name), cs);
             ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);  
             sc.map.put(new TextVob(style, dims[i].name), cs, cs_wh);  
84          }          }
85    
86          View view = fallback.viewList[win.viewIndex];          View view = fallback.viewList[win.viewIndex];
# Line 92  String rcsid = "$Id$"; Line 90  String rcsid = "$Id$";
90              sc.coords.getRenderInfo(into).getExtRect(rect);              sc.coords.getRenderInfo(into).getExtRect(rect);
91              float vw = style.getWidth(name, 1.6f), vh = style.getHeight(1.6f);              float vw = style.getWidth(name, 1.6f), vh = style.getHeight(1.6f);
92              float vx = rect.width - vw - 10;              float vx = rect.width - vw - 10;
93              int cs = sc.orthoCS(into, viewKey, 0, vx, 10, 2, 2);              int cs = sc.orthoCS(into, viewKey, 0, vx, 10, vh, vh);
94              int cs_wh = sc.coords.ortho(0, 0, 0, 0, vw, vh);              sc.map.put(new TextVob(style, name), cs);
             ((DefaultVobMatcher)sc.matcher).addSub(cs, cs_wh, whKey);  
             sc.map.put(new TextVob(style, name), cs, cs_wh);  
95          }          }
96      }      }
97  }  }

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