Package 

Interface Shape


  • 
    public interface Shape
    
                        

    Defines a shape that can be drawn on a canvas.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit drawShape(DrawContext context, Paint paint, Path path, Float left, Float top, Float right, Float bottom) Draws the Shape on the canvas.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • drawShape

         abstract Unit drawShape(DrawContext context, Paint paint, Path path, Float left, Float top, Float right, Float bottom)

        Draws the Shape on the canvas.

        Parameters:
        context - holds environment data.
        paint - the Paint used to draw the shape.
        path - the Path defining the shape.
        left - the x coordinate of the left edge of the bounds in which the shape should be drawn.
        top - the y coordinate of the top edge of the bounds in which the shape should be drawn.
        right - the x coordinate of the right edge of the bounds in which the shape should be drawn.
        bottom - the y coordinate of the bottom edge of the bounds in which the shape should be drawn.