/[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.20 by humppake, Mon Nov 25 16:03:38 2002 UTC revision 1.21 by humppake, Wed Nov 27 16:35:41 2002 UTC
# Line 48  String rcsid = "$Id$"; Line 48  String rcsid = "$Id$";
48      static Object origKey = new Object(), viewKey = new Object();      static Object origKey = new Object(), viewKey = new Object();
49      static Object boxKey = new Object(), whKey = new Object();      static Object boxKey = new Object(), whKey = new Object();
50      static Object[] dimKeys = { new Object(), new Object(), new Object() };      static Object[] dimKeys = { new Object(), new Object(), new Object() };
     static Object[] dimRectKeys = { new Object(), new Object(), new Object() };  
51    
52      /** The spacing between the boxes with the different dimensions.      /** The spacing between the boxes with the different dimensions.
53       */       */
# Line 77  String rcsid = "$Id$"; Line 76  String rcsid = "$Id$";
76              sc.orthoBoxCS(into, dimKeys[1], 0, 0, h+space, 1, 1, w, h),              sc.orthoBoxCS(into, dimKeys[1], 0, 0, h+space, 1, 1, w, h),
77              sc.orthoBoxCS(into, dimKeys[2], 0, w+space, h+space, 1, 1, w, h)              sc.orthoBoxCS(into, dimKeys[2], 0, w+space, h+space, 1, 1, w, h)
78          };          };
         int targ_unitSq[] = new int[3];  
79                    
80          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
81              int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, h-10, h-10);              int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, h-10, h-10);
             /* XXX Because we cannot give depth for UnisSqCS, and AWT crashes  
                with depth for TextVobCS, we should create background CS last. */  
             targ_unitSq[i] = sc.unitSqCS(targ[i], dimRectKeys[0]);  
82    
83              sc.map.put(conn, targ[i], orig);              sc.map.put(conn, targ[i], orig);
84              sc.map.put(bg, targ_unitSq[i]);              sc.map.put(bg, targ[i]);
85              sc.map.put(new TextVob(style, dims[i].name), cs);              sc.map.put(new TextVob(style, dims[i].name), cs);
86          }          }
87    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

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