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
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static final class
Shadow picker forCanvas
.static class
static class
Captures round rectangle drawing eventsstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract int
abstract int
abstract String
abstract ShadowCanvas.ArcPaintHistoryEvent
getDrawnArc
(int i) abstract ShadowCanvas.CirclePaintHistoryEvent
getDrawnCircle
(int i) abstract ShadowCanvas.LinePaintHistoryEvent
getDrawnLine
(int i) abstract ShadowCanvas.OvalPaintHistoryEvent
getDrawnOval
(int i) abstract Paint
abstract Path
getDrawnPath
(int i) abstract Paint
getDrawnPathPaint
(int i) abstract ShadowCanvas.RectPaintHistoryEvent
getDrawnRect
(int i) getDrawnRoundRect
(int i) abstract ShadowCanvas.TextHistoryEvent
getDrawnTextEvent
(int i) abstract ShadowCanvas.RectPaintHistoryEvent
abstract int
abstract int
abstract int
abstract int
abstract int
abstract int
abstract boolean
abstract boolean
abstract void
abstract void
setHeight
(int height) abstract void
setWidth
(int width) static String
-
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
-