1{
2  "methods": {
3    "__constructor__(android.graphics.Bitmap)": {
4      "isImplementation": true,
5      "modifiers": [
6        "protected"
7      ],
8      "params": [
9        "bitmap"
10      ],
11      "returnType": "void",
12      "exceptions": [],
13      "name": "__constructor__(android.graphics.Bitmap)"
14    },
15    "appendDescription(java.lang.String)": {
16      "isImplementation": false,
17      "modifiers": [
18        "public"
19      ],
20      "params": [
21        "s"
22      ],
23      "returnType": "void",
24      "exceptions": [],
25      "name": "appendDescription(java.lang.String)"
26    },
27    "describeBitmap(android.graphics.Bitmap,android.graphics.Paint)": {
28      "isImplementation": false,
29      "modifiers": [
30        "private"
31      ],
32      "params": [
33        "bitmap",
34        "paint"
35      ],
36      "returnType": "void",
37      "exceptions": [],
38      "name": "describeBitmap(android.graphics.Bitmap,android.graphics.Paint)"
39    },
40    "drawArc(android.graphics.RectF,float,float,boolean,android.graphics.Paint)": {
41      "isImplementation": true,
42      "modifiers": [
43        "protected"
44      ],
45      "params": [
46        "oval",
47        "startAngle",
48        "sweepAngle",
49        "useCenter",
50        "paint"
51      ],
52      "returnType": "void",
53      "exceptions": [],
54      "name": "drawArc(android.graphics.RectF,float,float,boolean,android.graphics.Paint)"
55    },
56    "drawBitmap(android.graphics.Bitmap,android.graphics.Matrix,android.graphics.Paint)": {
57      "isImplementation": true,
58      "modifiers": [
59        "protected"
60      ],
61      "params": [
62        "bitmap",
63        "matrix",
64        "paint"
65      ],
66      "returnType": "void",
67      "exceptions": [],
68      "name": "drawBitmap(android.graphics.Bitmap,android.graphics.Matrix,android.graphics.Paint)"
69    },
70    "drawBitmap(android.graphics.Bitmap,android.graphics.Rect,android.graphics.Rect,android.graphics.Paint)": {
71      "isImplementation": true,
72      "modifiers": [
73        "protected"
74      ],
75      "params": [
76        "bitmap",
77        "src",
78        "dst",
79        "paint"
80      ],
81      "returnType": "void",
82      "exceptions": [],
83      "name": "drawBitmap(android.graphics.Bitmap,android.graphics.Rect,android.graphics.Rect,android.graphics.Paint)"
84    },
85    "drawBitmap(android.graphics.Bitmap,android.graphics.Rect,android.graphics.RectF,android.graphics.Paint)": {
86      "isImplementation": true,
87      "modifiers": [
88        "protected"
89      ],
90      "params": [
91        "bitmap",
92        "src",
93        "dst",
94        "paint"
95      ],
96      "returnType": "void",
97      "exceptions": [],
98      "name": "drawBitmap(android.graphics.Bitmap,android.graphics.Rect,android.graphics.RectF,android.graphics.Paint)"
99    },
100    "drawBitmap(android.graphics.Bitmap,float,float,android.graphics.Paint)": {
101      "isImplementation": true,
102      "modifiers": [
103        "protected"
104      ],
105      "params": [
106        "bitmap",
107        "left",
108        "top",
109        "paint"
110      ],
111      "returnType": "void",
112      "exceptions": [],
113      "name": "drawBitmap(android.graphics.Bitmap,float,float,android.graphics.Paint)"
114    },
115    "drawCircle(float,float,float,android.graphics.Paint)": {
116      "isImplementation": true,
117      "modifiers": [
118        "protected"
119      ],
120      "params": [
121        "cx",
122        "cy",
123        "radius",
124        "paint"
125      ],
126      "returnType": "void",
127      "exceptions": [],
128      "name": "drawCircle(float,float,float,android.graphics.Paint)"
129    },
130    "drawColor(int)": {
131      "isImplementation": true,
132      "modifiers": [
133        "protected"
134      ],
135      "params": [
136        "color"
137      ],
138      "returnType": "void",
139      "exceptions": [],
140      "name": "drawColor(int)"
141    },
142    "drawLine(float,float,float,float,android.graphics.Paint)": {
143      "isImplementation": true,
144      "modifiers": [
145        "protected"
146      ],
147      "params": [
148        "startX",
149        "startY",
150        "stopX",
151        "stopY",
152        "paint"
153      ],
154      "returnType": "void",
155      "exceptions": [],
156      "name": "drawLine(float,float,float,float,android.graphics.Paint)"
157    },
158    "drawOval(android.graphics.RectF,android.graphics.Paint)": {
159      "isImplementation": true,
160      "modifiers": [
161        "protected"
162      ],
163      "params": [
164        "oval",
165        "paint"
166      ],
167      "returnType": "void",
168      "exceptions": [],
169      "name": "drawOval(android.graphics.RectF,android.graphics.Paint)"
170    },
171    "drawPaint(android.graphics.Paint)": {
172      "isImplementation": true,
173      "modifiers": [
174        "protected"
175      ],
176      "params": [
177        "paint"
178      ],
179      "returnType": "void",
180      "exceptions": [],
181      "name": "drawPaint(android.graphics.Paint)"
182    },
183    "drawPath(android.graphics.Path,android.graphics.Paint)": {
184      "isImplementation": true,
185      "modifiers": [
186        "protected"
187      ],
188      "params": [
189        "path",
190        "paint"
191      ],
192      "returnType": "void",
193      "exceptions": [],
194      "name": "drawPath(android.graphics.Path,android.graphics.Paint)"
195    },
196    "drawRect(float,float,float,float,android.graphics.Paint)": {
197      "isImplementation": true,
198      "modifiers": [
199        "protected"
200      ],
201      "params": [
202        "left",
203        "top",
204        "right",
205        "bottom",
206        "paint"
207      ],
208      "returnType": "void",
209      "exceptions": [],
210      "name": "drawRect(float,float,float,float,android.graphics.Paint)"
211    },
212    "drawText(char[],int,int,float,float,android.graphics.Paint)": {
213      "isImplementation": true,
214      "modifiers": [
215        "protected"
216      ],
217      "params": [
218        "text",
219        "index",
220        "count",
221        "x",
222        "y",
223        "paint"
224      ],
225      "returnType": "void",
226      "exceptions": [],
227      "name": "drawText(char[],int,int,float,float,android.graphics.Paint)"
228    },
229    "drawText(java.lang.CharSequence,int,int,float,float,android.graphics.Paint)": {
230      "isImplementation": true,
231      "modifiers": [
232        "protected"
233      ],
234      "params": [
235        "text",
236        "start",
237        "end",
238        "x",
239        "y",
240        "paint"
241      ],
242      "returnType": "void",
243      "exceptions": [],
244      "name": "drawText(java.lang.CharSequence,int,int,float,float,android.graphics.Paint)"
245    },
246    "drawText(java.lang.String,float,float,android.graphics.Paint)": {
247      "isImplementation": true,
248      "modifiers": [
249        "protected"
250      ],
251      "params": [
252        "text",
253        "x",
254        "y",
255        "paint"
256      ],
257      "returnType": "void",
258      "exceptions": [],
259      "name": "drawText(java.lang.String,float,float,android.graphics.Paint)"
260    },
261    "drawText(java.lang.String,int,int,float,float,android.graphics.Paint)": {
262      "isImplementation": true,
263      "modifiers": [
264        "protected"
265      ],
266      "params": [
267        "text",
268        "start",
269        "end",
270        "x",
271        "y",
272        "paint"
273      ],
274      "returnType": "void",
275      "exceptions": [],
276      "name": "drawText(java.lang.String,int,int,float,float,android.graphics.Paint)"
277    },
278    "formatColorMatric(android.graphics.ColorMatrix)": {
279      "isImplementation": false,
280      "modifiers": [
281        "private"
282      ],
283      "params": [
284        "colorMatrix"
285      ],
286      "returnType": "java.lang.String",
287      "exceptions": [],
288      "name": "formatColorMatric(android.graphics.ColorMatrix)"
289    },
290    "getArcPaintHistoryCount()": {
291      "isImplementation": false,
292      "modifiers": [
293        "public"
294      ],
295      "params": [],
296      "returnType": "int",
297      "exceptions": [],
298      "name": "getArcPaintHistoryCount()"
299    },
300    "getCirclePaintHistoryCount()": {
301      "isImplementation": false,
302      "modifiers": [
303        "public"
304      ],
305      "params": [],
306      "returnType": "int",
307      "exceptions": [],
308      "name": "getCirclePaintHistoryCount()"
309    },
310    "getDescription()": {
311      "isImplementation": false,
312      "modifiers": [
313        "public"
314      ],
315      "params": [],
316      "returnType": "java.lang.String",
317      "exceptions": [],
318      "name": "getDescription()"
319    },
320    "getDrawnArc(int)": {
321      "isImplementation": false,
322      "modifiers": [
323        "public"
324      ],
325      "params": [
326        "i"
327      ],
328      "returnType": "org.robolectric.shadows.ShadowCanvas.ArcPaintHistoryEvent",
329      "exceptions": [],
330      "name": "getDrawnArc(int)"
331    },
332    "getDrawnCircle(int)": {
333      "isImplementation": false,
334      "modifiers": [
335        "public"
336      ],
337      "params": [
338        "i"
339      ],
340      "returnType": "org.robolectric.shadows.ShadowCanvas.CirclePaintHistoryEvent",
341      "exceptions": [],
342      "name": "getDrawnCircle(int)"
343    },
344    "getDrawnLine(int)": {
345      "isImplementation": false,
346      "modifiers": [
347        "public"
348      ],
349      "params": [
350        "i"
351      ],
352      "returnType": "org.robolectric.shadows.ShadowCanvas.LinePaintHistoryEvent",
353      "exceptions": [],
354      "name": "getDrawnLine(int)"
355    },
356    "getDrawnOval(int)": {
357      "isImplementation": false,
358      "modifiers": [
359        "public"
360      ],
361      "params": [
362        "i"
363      ],
364      "returnType": "org.robolectric.shadows.ShadowCanvas.OvalPaintHistoryEvent",
365      "exceptions": [],
366      "name": "getDrawnOval(int)"
367    },
368    "getDrawnPaint()": {
369      "isImplementation": false,
370      "modifiers": [
371        "public"
372      ],
373      "params": [],
374      "returnType": "android.graphics.Paint",
375      "exceptions": [],
376      "name": "getDrawnPaint()"
377    },
378    "getDrawnPath(int)": {
379      "isImplementation": false,
380      "modifiers": [
381        "public"
382      ],
383      "params": [
384        "i"
385      ],
386      "returnType": "android.graphics.Path",
387      "exceptions": [],
388      "name": "getDrawnPath(int)"
389    },
390    "getDrawnPathPaint(int)": {
391      "isImplementation": false,
392      "modifiers": [
393        "public"
394      ],
395      "params": [
396        "i"
397      ],
398      "returnType": "android.graphics.Paint",
399      "exceptions": [],
400      "name": "getDrawnPathPaint(int)"
401    },
402    "getDrawnRect(int)": {
403      "isImplementation": false,
404      "modifiers": [
405        "public"
406      ],
407      "params": [
408        "i"
409      ],
410      "returnType": "org.robolectric.shadows.ShadowCanvas.RectPaintHistoryEvent",
411      "exceptions": [],
412      "name": "getDrawnRect(int)"
413    },
414    "getDrawnTextEvent(int)": {
415      "isImplementation": false,
416      "modifiers": [
417        "public"
418      ],
419      "params": [
420        "i"
421      ],
422      "returnType": "org.robolectric.shadows.ShadowCanvas.TextHistoryEvent",
423      "exceptions": [],
424      "name": "getDrawnTextEvent(int)"
425    },
426    "getHeight()": {
427      "isImplementation": true,
428      "modifiers": [
429        "protected"
430      ],
431      "params": [],
432      "returnType": "int",
433      "exceptions": [],
434      "name": "getHeight()"
435    },
436    "getLastDrawnRect()": {
437      "isImplementation": false,
438      "modifiers": [
439        "public"
440      ],
441      "params": [],
442      "returnType": "org.robolectric.shadows.ShadowCanvas.RectPaintHistoryEvent",
443      "exceptions": [],
444      "name": "getLastDrawnRect()"
445    },
446    "getLinePaintHistoryCount()": {
447      "isImplementation": false,
448      "modifiers": [
449        "public"
450      ],
451      "params": [],
452      "returnType": "int",
453      "exceptions": [],
454      "name": "getLinePaintHistoryCount()"
455    },
456    "getOvalPaintHistoryCount()": {
457      "isImplementation": false,
458      "modifiers": [
459        "public"
460      ],
461      "params": [],
462      "returnType": "int",
463      "exceptions": [],
464      "name": "getOvalPaintHistoryCount()"
465    },
466    "getPathPaintHistoryCount()": {
467      "isImplementation": false,
468      "modifiers": [
469        "public"
470      ],
471      "params": [],
472      "returnType": "int",
473      "exceptions": [],
474      "name": "getPathPaintHistoryCount()"
475    },
476    "getRectPaintHistoryCount()": {
477      "isImplementation": false,
478      "modifiers": [
479        "public"
480      ],
481      "params": [],
482      "returnType": "int",
483      "exceptions": [],
484      "name": "getRectPaintHistoryCount()"
485    },
486    "getTextHistoryCount()": {
487      "isImplementation": false,
488      "modifiers": [
489        "public"
490      ],
491      "params": [],
492      "returnType": "int",
493      "exceptions": [],
494      "name": "getTextHistoryCount()"
495    },
496    "getWidth()": {
497      "isImplementation": true,
498      "modifiers": [
499        "protected"
500      ],
501      "params": [],
502      "returnType": "int",
503      "exceptions": [],
504      "name": "getWidth()"
505    },
506    "hasDrawnCircle()": {
507      "isImplementation": false,
508      "modifiers": [
509        "public"
510      ],
511      "params": [],
512      "returnType": "boolean",
513      "exceptions": [],
514      "name": "hasDrawnCircle()"
515    },
516    "hasDrawnPath()": {
517      "isImplementation": false,
518      "modifiers": [
519        "public"
520      ],
521      "params": [],
522      "returnType": "boolean",
523      "exceptions": [],
524      "name": "hasDrawnPath()"
525    },
526    "resetCanvasHistory()": {
527      "isImplementation": false,
528      "modifiers": [
529        "public"
530      ],
531      "params": [],
532      "returnType": "void",
533      "exceptions": [],
534      "name": "resetCanvasHistory()"
535    },
536    "restore()": {
537      "isImplementation": true,
538      "modifiers": [
539        "protected"
540      ],
541      "params": [],
542      "returnType": "void",
543      "exceptions": [],
544      "name": "restore()"
545    },
546    "save()": {
547      "isImplementation": true,
548      "modifiers": [
549        "protected"
550      ],
551      "params": [],
552      "returnType": "int",
553      "exceptions": [],
554      "name": "save()"
555    },
556    "scale(float,float)": {
557      "isImplementation": true,
558      "modifiers": [
559        "protected"
560      ],
561      "params": [
562        "sx",
563        "sy"
564      ],
565      "returnType": "void",
566      "exceptions": [],
567      "name": "scale(float,float)"
568    },
569    "scale(float,float,float,float)": {
570      "isImplementation": true,
571      "modifiers": [
572        "protected"
573      ],
574      "params": [
575        "sx",
576        "sy",
577        "px",
578        "py"
579      ],
580      "returnType": "void",
581      "exceptions": [],
582      "name": "scale(float,float,float,float)"
583    },
584    "separateLines()": {
585      "isImplementation": false,
586      "modifiers": [
587        "private"
588      ],
589      "params": [],
590      "returnType": "void",
591      "exceptions": [],
592      "name": "separateLines()"
593    },
594    "setBitmap(android.graphics.Bitmap)": {
595      "isImplementation": true,
596      "modifiers": [
597        "protected"
598      ],
599      "params": [
600        "bitmap"
601      ],
602      "returnType": "void",
603      "exceptions": [],
604      "name": "setBitmap(android.graphics.Bitmap)"
605    },
606    "setHeight(int)": {
607      "isImplementation": false,
608      "modifiers": [
609        "public"
610      ],
611      "params": [
612        "height"
613      ],
614      "returnType": "void",
615      "exceptions": [],
616      "name": "setHeight(int)"
617    },
618    "setWidth(int)": {
619      "isImplementation": false,
620      "modifiers": [
621        "public"
622      ],
623      "params": [
624        "width"
625      ],
626      "returnType": "void",
627      "exceptions": [],
628      "name": "setWidth(int)"
629    },
630    "translate(float,float)": {
631      "isImplementation": true,
632      "modifiers": [
633        "protected"
634      ],
635      "params": [
636        "x",
637        "y"
638      ],
639      "returnType": "void",
640      "exceptions": [],
641      "name": "translate(float,float)"
642    },
643    "visualize(android.graphics.Canvas)": {
644      "isImplementation": false,
645      "modifiers": [
646        "public",
647        "static"
648      ],
649      "params": [
650        "canvas"
651      ],
652      "returnType": "java.lang.String",
653      "exceptions": [],
654      "name": "visualize(android.graphics.Canvas)",
655      "documentation": "Returns a textual representation of the appearance of the object.\n\n@param canvas the canvas to visualize\n@return The textual representation of the appearance of the object.\n"
656    }
657  },
658  "imports": [
659    "android.graphics.Bitmap",
660    "android.graphics.Canvas",
661    "android.graphics.ColorFilter",
662    "android.graphics.ColorMatrix",
663    "android.graphics.ColorMatrixColorFilter",
664    "android.graphics.Matrix",
665    "android.graphics.Paint",
666    "android.graphics.Path",
667    "android.graphics.Rect",
668    "android.graphics.RectF",
669    "java.util.ArrayList",
670    "java.util.List",
671    "org.robolectric.annotation.Implementation",
672    "org.robolectric.annotation.Implements",
673    "org.robolectric.shadow.api.Shadow",
674    "org.robolectric.util.Join",
675    "org.robolectric.util.ReflectionHelpers",
676    "org.robolectric.shadows.ShadowCanvas.LinePaintHistoryEvent",
677    "org.robolectric.shadows.ShadowCanvas.OvalPaintHistoryEvent",
678    "org.robolectric.shadows.ShadowCanvas.RectPaintHistoryEvent",
679    "org.robolectric.shadows.ShadowCanvas.PathPaintHistoryEvent",
680    "org.robolectric.shadows.ShadowCanvas.CirclePaintHistoryEvent",
681    "org.robolectric.shadows.ShadowCanvas.ArcPaintHistoryEvent",
682    "org.robolectric.shadows.ShadowCanvas.TextHistoryEvent"
683  ],
684  "name": "org.robolectric.shadows.ShadowCanvas",
685  "documentation": "Broken. This implementation is very specific to the application for which it was developed.\nTodo: Reimplement. Consider using the same strategy of collecting a history of draw events\nand providing methods for writing queries based on type, number, and order of events.\n"
686}