/[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.18 by benja, Sat Nov 23 13:44:20 2002 UTC revision 1.19 by humppake, Mon Nov 25 11:15:16 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() };
51        static Object[] dimRectKeys = { new Object(), new Object(), new Object() };
52    
53      /** The spacing between the boxes with the different dimensions.      /** The spacing between the boxes with the different dimensions.
54       */       */
# Line 76  String rcsid = "$Id$"; Line 77  String rcsid = "$Id$";
77              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),
78              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)
79          };          };
80            int targ_unitSq[] = new int[3];
81            
82          for(int i=0; i<3; i++) {          for(int i=0; i<3; i++) {
83                int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, h-10, h-10);
84                /* XXX Because we cannot give depth for UnisSQ it, and negative
85                   depth for TextVob crashes AWT we should create background cs. */
86                targ_unitSq[i] = sc.unitSqCS(targ[i], dimRectKeys[0]);
87    
88              sc.map.put(conn, targ[i], orig);              sc.map.put(conn, targ[i], orig);
89              sc.map.put(bg, targ[i]);              sc.map.put(bg, targ_unitSq[i]);
               
             int cs = sc.orthoCS(targ[i], dimKeys[i], 0, 5, 5, h-10, h-10);  
90              sc.map.put(new TextVob(style, dims[i].name), cs);              sc.map.put(new TextVob(style, dims[i].name), cs);
91          }          }
92    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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