com.xtremelabs.robolectric.shadows
Class ShadowCanvas
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowCanvas
@Implements(value=android.graphics.Canvas.class)
public class ShadowCanvas
- extends java.lang.Object
Shadows the android.graphics.Canvas
class.
Broken.
This implementation is very specific to the application for which it was developed.
Todo: Reimplement. Consider using the same strategy of collecting a history of draw events and providing methods for writing queries based on type, number, and order of events.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowCanvas
public ShadowCanvas()
drawPaint
@Implementation
public void drawPaint(android.graphics.Paint paint)
drawPath
@Implementation
public void drawPath(android.graphics.Path path,
android.graphics.Paint paint)
drawCircle
@Implementation
public void drawCircle(float cx,
float cy,
float radius,
android.graphics.Paint paint)
getPathPaintHistoryCount
public int getPathPaintHistoryCount()
getCirclePaintHistoryCount
public int getCirclePaintHistoryCount()
hasDrawnPath
public boolean hasDrawnPath()
hasDrawnCircle
public boolean hasDrawnCircle()
getDrawnPathPaint
public android.graphics.Paint getDrawnPathPaint(int i)
getDrawnPath
public android.graphics.Path getDrawnPath(int i)
getDrawnCircle
public ShadowCanvas.CirclePaintHistoryEvent getDrawnCircle(int i)
resetCanvasHistory
public void resetCanvasHistory()
getDrawnPaint
public android.graphics.Paint getDrawnPaint()
isDrewSomethingAfterCircle
public boolean isDrewSomethingAfterCircle()