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

Diff of /gzz/gzz/view/LollipopCellView.java

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

revision 1.2 by humppake, Mon Nov 18 15:40:49 2002 UTC revision 1.3 by humppake, Fri Nov 22 03:55:20 2002 UTC
# Line 82  public static final String rcsid = "$Id$ Line 82  public static final String rcsid = "$Id$
82              bg.setBg(bg.getBg().darker().darker());              bg.setBg(bg.getBg().darker().darker());
83          }          }
84    
85    
86          float pad = 5;          float pad = 5;
87          /** XXX scaling somethign after TextStyle is propably deprecated.  
          *  
          * But think about LollipopCellview with LinebrokenContentCellView.  
          * With multiline cells the ball can't be sized after cell's box.  
          * Most reasonable would be that the ball's size is some how related  
          * with the font's height. In other words Ball should point only  
          * the first line of the content  
          *  
          * Better would be that there is another coordinate system for ball,  
          * but it should be explicitly created already by someone, who can  
          * control eg. the font size. And LollipopCellView should still work  
          * with all the other views...  
          *  
          * Hmm... easisiest would be, if the box's on unit on y-axel means  
          * height of one text row. Then ball's diameter would be simple 1.  
          */  
         //float diameter =  style.getHeight(1)+2*pad;  
         float diameter = 20;  
88          vs.coords.getSqSize(box, boxwh);          vs.coords.getSqSize(box, boxwh);
89            float diameter = 15; // XXX
90    
91          /** Cell's content will be drawn next to OvalBgVob */          /** Cell's content will be drawn next to OvalBgVob */
92          final int contentBox = vs.orthoBoxCS(box, "content", 0,          final int contentBox = vs.orthoBoxCS(box, "content", 0,
93                                               diameter+pad, pad, 1, 1,                                               diameter + pad, pad*0.25f, 1, 1,
94                                               boxwh[0]-2*pad,                                               boxwh[0] - (diameter + pad),
95                                               boxwh[1]-2*pad);                                               boxwh[1] - 2*pad);
96    
97          /** Coordsys to make OvalBgVob look circle and at          /** Coordsys to make OvalBgVob look circle and at
98           * right place of cell's Box. Currently "right place"           * right place of cell's Box. Currently "right place"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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