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" |