Class ShadowCanvas

  • Direct Known Subclasses:
    ShadowDisplayListCanvas, ShadowRecordingCanvas

    @Implements(android.graphics.Canvas.class)
    public class ShadowCanvas
    extends Object
    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.
    • Constructor Detail

      • ShadowCanvas

        public ShadowCanvas()
    • Method Detail

      • visualize

        public static String visualize​(Canvas canvas)
        Returns a textual representation of the appearance of the object.
        Parameters:
        canvas - the canvas to visualize
        Returns:
        The textual representation of the appearance of the object.
      • __constructor__

        @Implementation
        protected void __constructor__​(Bitmap bitmap)
      • appendDescription

        public void appendDescription​(String s)
      • getDescription

        public String getDescription()
      • setBitmap

        @Implementation
        protected void setBitmap​(Bitmap bitmap)
      • drawText

        @Implementation
        protected void drawText​(String text,
                                float x,
                                float y,
                                Paint paint)
      • drawText

        @Implementation
        protected void drawText​(CharSequence text,
                                int start,
                                int end,
                                float x,
                                float y,
                                Paint paint)
      • drawText

        @Implementation
        protected void drawText​(char[] text,
                                int index,
                                int count,
                                float x,
                                float y,
                                Paint paint)
      • drawText

        @Implementation
        protected void drawText​(String text,
                                int start,
                                int end,
                                float x,
                                float y,
                                Paint paint)
      • translate

        @Implementation
        protected void translate​(float x,
                                 float y)
      • scale

        @Implementation
        protected void scale​(float sx,
                             float sy)
      • scale

        @Implementation
        protected void scale​(float sx,
                             float sy,
                             float px,
                             float py)
      • drawPaint

        @Implementation
        protected void drawPaint​(Paint paint)
      • drawColor

        @Implementation
        protected void drawColor​(int color)
      • drawBitmap

        @Implementation
        protected void drawBitmap​(Bitmap bitmap,
                                  float left,
                                  float top,
                                  Paint paint)
      • drawBitmap

        @Implementation
        protected void drawBitmap​(Bitmap bitmap,
                                  Rect src,
                                  Rect dst,
                                  Paint paint)
      • drawBitmap

        @Implementation
        protected void drawBitmap​(Bitmap bitmap,
                                  Rect src,
                                  RectF dst,
                                  Paint paint)
      • drawBitmap

        @Implementation
        protected void drawBitmap​(Bitmap bitmap,
                                  Matrix matrix,
                                  Paint paint)
      • drawPath

        @Implementation
        protected void drawPath​(Path path,
                                Paint paint)
      • drawCircle

        @Implementation
        protected void drawCircle​(float cx,
                                  float cy,
                                  float radius,
                                  Paint paint)
      • drawArc

        @Implementation
        protected void drawArc​(RectF oval,
                               float startAngle,
                               float sweepAngle,
                               boolean useCenter,
                               Paint paint)
      • drawRect

        @Implementation
        protected void drawRect​(float left,
                                float top,
                                float right,
                                float bottom,
                                Paint paint)
      • drawRect

        @Implementation
        protected void drawRect​(Rect r,
                                Paint paint)
      • drawRoundRect

        @Implementation
        protected void drawRoundRect​(RectF rect,
                                     float rx,
                                     float ry,
                                     Paint paint)
      • drawLine

        @Implementation
        protected void drawLine​(float startX,
                                float startY,
                                float stopX,
                                float stopY,
                                Paint paint)
      • drawOval

        @Implementation
        protected void drawOval​(RectF oval,
                                Paint paint)
      • save

        @Implementation
        protected int save()
      • restore

        @Implementation
        protected void restore()
      • getPathPaintHistoryCount

        public int getPathPaintHistoryCount()
      • getCirclePaintHistoryCount

        public int getCirclePaintHistoryCount()
      • getArcPaintHistoryCount

        public int getArcPaintHistoryCount()
      • hasDrawnPath

        public boolean hasDrawnPath()
      • hasDrawnCircle

        public boolean hasDrawnCircle()
      • getDrawnPathPaint

        public Paint getDrawnPathPaint​(int i)
      • getDrawnPath

        public Path getDrawnPath​(int i)
      • resetCanvasHistory

        public void resetCanvasHistory()
      • getDrawnPaint

        public Paint getDrawnPaint()
      • setHeight

        public void setHeight​(int height)
      • setWidth

        public void setWidth​(int width)
      • getWidth

        @Implementation
        protected int getWidth()
      • getHeight

        @Implementation
        protected int getHeight()
      • getTextHistoryCount

        public int getTextHistoryCount()
      • getRectPaintHistoryCount

        public int getRectPaintHistoryCount()
      • getRoundRectPaintHistoryCount

        public int getRoundRectPaintHistoryCount()
      • getLinePaintHistoryCount

        public int getLinePaintHistoryCount()
      • getOvalPaintHistoryCount

        public int getOvalPaintHistoryCount()