/[gzz]/gzz/gzz/view/MarkDecorator.java
ViewVC logotype

Diff of /gzz/gzz/view/MarkDecorator.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by humppake, Mon Nov 18 10:28:16 2002 UTC revision 1.14 by humppake, Fri Nov 22 03:55:20 2002 UTC
# Line 53  public class MarkDecorator implements Fa Line 53  public class MarkDecorator implements Fa
53          java.awt.Dimension outer = vs.getSize();          java.awt.Dimension outer = vs.getSize();
54    
55          float x = outer.width - w - PAD,          float x = outer.width - w - PAD,
56                y = outer.height - h - PAD;                y = outer.height - h - PAD * n;
57    
58          int cs_list = vs.orthoCS(into, KEY, 0, x, y, 2, 2);          int cs_list = vs.orthoBoxCS(into, KEY, 0, x, y, 1, 1, w, h);
59    
60          for(int i=0; i<n; i++) {          for(int i=0; i<n; i++) {
61              Mark m = (Mark)DefaultBinder.marks.get(i);              Mark m = (Mark)DefaultBinder.marks.get(i);
62              if(m.spans != null) return; // for now-- should show span(s)              if(m.spans != null) return; // for now-- should show span(s)
63              Cell c = m.cell;              Cell c = m.cell;
64    
65              int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*w, 1, 1, w, h);              /*      int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*w, 1, 1, w, h); */
66                int box = vs.orthoBoxCS(cs_list, c, 0, 0, i*(h/n+PAD), 1, 1, w, h/n);
67              cv.place(c, vs, box, win);              cv.place(c, vs, box, win);
68          }          }
69    
# Line 72  public class MarkDecorator implements Fa Line 73  public class MarkDecorator implements Fa
73          if(w > size[0])          if(w > size[0])
74              x += size[0] - w;              x += size[0] - w;
75    
76          int cs = vs.orthoCS(into, TEXT_KEY, 0, x, y, 2, 2);          int cs = vs.orthoCS(into, TEXT_KEY, 0, x, y, h, h);
77          vs.map.put(new TextVob(style, str), cs);          vs.map.put(new TextVob(style, str), cs);
78      }      }
79  }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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