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.
  • Constructor Details

    • ShadowCanvas

      public ShadowCanvas()
  • Method Details

    • visualize

      public static String visualize(Canvas canvas)
    • appendDescription

      public abstract void appendDescription(String s)
    • getDescription

      public abstract String 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

      public abstract Paint getDrawnPathPaint(int i)
    • getDrawnPath

      public abstract Path getDrawnPath(int i)
    • getDrawnCircle

      public abstract ShadowCanvas.CirclePaintHistoryEvent getDrawnCircle(int i)
    • getDrawnArc

      public abstract ShadowCanvas.ArcPaintHistoryEvent getDrawnArc(int i)
    • resetCanvasHistory

      public abstract void resetCanvasHistory()
    • getDrawnPaint

      public abstract Paint getDrawnPaint()
    • setHeight

      public abstract void setHeight(int height)
    • setWidth

      public abstract void setWidth(int width)
    • getDrawnTextEvent

      public abstract ShadowCanvas.TextHistoryEvent getDrawnTextEvent(int i)
    • getTextHistoryCount

      public abstract int getTextHistoryCount()
    • getDrawnRect

      public abstract ShadowCanvas.RectPaintHistoryEvent getDrawnRect(int i)
    • getLastDrawnRect

      public abstract ShadowCanvas.RectPaintHistoryEvent getLastDrawnRect()
    • getRectPaintHistoryCount

      public abstract int getRectPaintHistoryCount()
    • getDrawnRoundRect

      public abstract ShadowCanvas.RoundRectPaintHistoryEvent getDrawnRoundRect(int i)
    • getLastDrawnRoundRect

      public abstract ShadowCanvas.RoundRectPaintHistoryEvent getLastDrawnRoundRect()
    • getRoundRectPaintHistoryCount

      public abstract int getRoundRectPaintHistoryCount()
    • getDrawnLine

      public abstract ShadowCanvas.LinePaintHistoryEvent getDrawnLine(int i)
    • getLinePaintHistoryCount

      public abstract int getLinePaintHistoryCount()
    • getOvalPaintHistoryCount

      public abstract int getOvalPaintHistoryCount()
    • getDrawnOval

      public abstract ShadowCanvas.OvalPaintHistoryEvent getDrawnOval(int i)