|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ViewTodayItemNote | Line # 9 | 6 | 3 | 100% |
1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | ||
2 | package pl.magot.vetch.ancal.views; | |
3 | ||
4 | ||
5 | import android.content.Context; | |
6 | import android.graphics.Canvas; | |
7 | ||
8 | ||
9 | public class ViewTodayItemNote extends ViewTodayItem | |
10 | { | |
11 | //methods | |
12 | 7 |
![]() |
13 | { | |
14 | 7 | super(context); |
15 | } | |
16 | ||
17 | 7 |
![]() |
18 | { | |
19 | 7 | SetText(sText); |
20 | } | |
21 | ||
22 | 69 |
![]() |
23 | protected void onDraw(Canvas canvas) | |
24 | { | |
25 | 69 | super.onDraw(canvas); |
26 | //DrawTestRect(canvas); | |
27 | ||
28 | 69 | final int iposX = ViewTodayItemHeader.GetTextPosX(); |
29 | 69 | int iposY = iMargin - (int)mpt.ascent(); |
30 | ||
31 | 69 | DrawItemText(canvas, iposX, iposY, getWidth() - iSpace, iColorTextActive_enabled); |
32 | } | |
33 | ||
34 | } |
|