Package org.robolectric.shadows
Class ShadowCanvas
java.lang.Object
org.robolectric.shadows.ShadowCanvas
- Direct Known Subclasses:
ShadowLegacyCanvas
,ShadowNativeBaseCanvas
@Implements(value=android.graphics.Canvas.class, shadowPicker=Picker.class) public abstract class ShadowCanvas extends Object
Base class for
Canvas
shadow classes. Mainly contains public shadow API signatures.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowCanvas.ArcPaintHistoryEvent
static class
ShadowCanvas.CirclePaintHistoryEvent
static class
ShadowCanvas.LinePaintHistoryEvent
static class
ShadowCanvas.OvalPaintHistoryEvent
static class
ShadowCanvas.Picker
Shadow picker forCanvas
.static class
ShadowCanvas.RectPaintHistoryEvent
static class
ShadowCanvas.RoundRectPaintHistoryEvent
Captures round rectangle drawing eventsstatic class
ShadowCanvas.TextHistoryEvent
-
Constructor Summary
Constructors Constructor Description ShadowCanvas()
-
Method Summary
-
Constructor Details
-
ShadowCanvas
public ShadowCanvas()
-
-
Method Details
-
visualize
-
appendDescription
-
getDescription
-
getPathPaintHistoryCount
public abstract int getPathPaintHistoryCount() -
getCirclePaintHistoryCount
public abstract int getCirclePaintHistoryCount() -
getArcPaintHistoryCount
public abstract int getArcPaintHistoryCount() -
hasDrawnPath
public abstract boolean hasDrawnPath() -
hasDrawnCircle
public abstract boolean hasDrawnCircle() -
getDrawnPathPaint
-
getDrawnPath
-
getDrawnCircle
-
getDrawnArc
-
resetCanvasHistory
public abstract void resetCanvasHistory() -
getDrawnPaint
-
setHeight
public abstract void setHeight(int height) -
setWidth
public abstract void setWidth(int width) -
getDrawnTextEvent
-
getTextHistoryCount
public abstract int getTextHistoryCount() -
getDrawnRect
-
getLastDrawnRect
-
getRectPaintHistoryCount
public abstract int getRectPaintHistoryCount() -
getDrawnRoundRect
-
getLastDrawnRoundRect
-
getRoundRectPaintHistoryCount
public abstract int getRoundRectPaintHistoryCount() -
getDrawnLine
-
getLinePaintHistoryCount
public abstract int getLinePaintHistoryCount() -
getOvalPaintHistoryCount
public abstract int getOvalPaintHistoryCount() -
getDrawnOval
-