Class ShadowPath


  • @Implements(android.graphics.Path.class)
    public class ShadowPath
    extends java.lang.Object
    The shadow only supports straight-line paths.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ShadowPath.Point  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean isSimplePath  
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowPath()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void __constructor__​(android.graphics.Path path)  
      protected void addArc​(float left, float top, float right, float bottom, float startAngle, float sweepAngle)  
      protected void addCircle​(float x, float y, float radius, android.graphics.Path.Direction dir)  
      protected void addOval​(float left, float top, float right, float bottom, android.graphics.Path.Direction dir)  
      protected void addPath​(android.graphics.Path src)  
      protected void addPath​(android.graphics.Path src, float dx, float dy)  
      protected void addPath​(android.graphics.Path src, android.graphics.Matrix matrix)  
      protected void addRect​(float left, float top, float right, float bottom, android.graphics.Path.Direction dir)  
      protected void addRect​(android.graphics.RectF rect, android.graphics.Path.Direction dir)  
      protected void addRoundRect​(float left, float top, float right, float bottom, float[] radii, android.graphics.Path.Direction dir)  
      protected void addRoundRect​(float left, float top, float right, float bottom, float rx, float ry, android.graphics.Path.Direction dir)  
      protected void addRoundRect​(android.graphics.RectF rect, float[] radii, android.graphics.Path.Direction dir)  
      protected void addRoundRect​(android.graphics.RectF rect, float rx, float ry, android.graphics.Path.Direction dir)  
      protected float[] approximate​(float acceptableError)  
      protected void arcTo​(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo)  
      protected void arcTo​(android.graphics.RectF oval, float startAngle, float sweepAngle)  
      protected void arcTo​(android.graphics.RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo)  
      protected void close()  
      protected void computeBounds​(android.graphics.RectF bounds, boolean exact)  
      protected void cubicTo​(float x1, float y1, float x2, float y2, float x3, float y3)  
      void fillBounds​(android.graphics.RectF bounds)
      Fills the given RectF with the path bounds.
      protected android.graphics.Path.FillType getFillType()  
      java.util.List<ShadowPath.Point> getPoints()  
      protected void incReserve​(int extraPtCount)  
      protected boolean isConvex()  
      protected boolean isEmpty()  
      protected boolean isInverseFillType()  
      protected boolean isRect​(android.graphics.RectF rect)  
      protected void lineTo​(float x, float y)  
      protected void moveTo​(float x, float y)  
      protected void offset​(float dx, float dy)  
      protected void offset​(float dx, float dy, android.graphics.Path dst)  
      protected boolean op​(android.graphics.Path path1, android.graphics.Path path2, android.graphics.Path.Op op)  
      protected void quadTo​(float x1, float y1, float x2, float y2)  
      protected void rCubicTo​(float x1, float y1, float x2, float y2, float x3, float y3)  
      protected void reset()  
      protected void rewind()  
      protected void rLineTo​(float dx, float dy)  
      protected void rMoveTo​(float dx, float dy)  
      protected void rQuadTo​(float dx1, float dy1, float dx2, float dy2)  
      protected void set​(android.graphics.Path src)  
      protected void setFillType​(android.graphics.Path.FillType fillType)  
      protected void setLastPoint​(float dx, float dy)  
      protected void toggleInverseFillType()  
      protected void transform​(android.graphics.Matrix matrix)  
      protected void transform​(android.graphics.Matrix matrix, android.graphics.Path dst)  
      • Methods inherited from class java.lang.Object

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

      • isSimplePath

        protected boolean isSimplePath
    • Constructor Detail

      • ShadowPath

        public ShadowPath()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__​(android.graphics.Path path)
      • moveTo

        @Implementation
        protected void moveTo​(float x,
                              float y)
      • lineTo

        @Implementation
        protected void lineTo​(float x,
                              float y)
      • quadTo

        @Implementation
        protected void quadTo​(float x1,
                              float y1,
                              float x2,
                              float y2)
      • cubicTo

        @Implementation
        protected void cubicTo​(float x1,
                               float y1,
                               float x2,
                               float y2,
                               float x3,
                               float y3)
      • reset

        @Implementation
        protected void reset()
      • approximate

        @Implementation(minSdk=21)
        protected float[] approximate​(float acceptableError)
      • getPoints

        public java.util.List<ShadowPath.Point> getPoints()
        Returns:
        all the points that have been added to the Path
      • rewind

        @Implementation
        protected void rewind()
      • set

        @Implementation
        protected void set​(android.graphics.Path src)
      • op

        @Implementation(minSdk=19)
        protected boolean op​(android.graphics.Path path1,
                             android.graphics.Path path2,
                             android.graphics.Path.Op op)
      • isConvex

        @Implementation(minSdk=21)
        protected boolean isConvex()
      • getFillType

        @Implementation
        protected android.graphics.Path.FillType getFillType()
      • setFillType

        @Implementation
        protected void setFillType​(android.graphics.Path.FillType fillType)
      • isInverseFillType

        @Implementation
        protected boolean isInverseFillType()
      • toggleInverseFillType

        @Implementation
        protected void toggleInverseFillType()
      • isEmpty

        @Implementation
        protected boolean isEmpty()
      • isRect

        @Implementation
        protected boolean isRect​(android.graphics.RectF rect)
      • computeBounds

        @Implementation
        protected void computeBounds​(android.graphics.RectF bounds,
                                     boolean exact)
      • incReserve

        @Implementation
        protected void incReserve​(int extraPtCount)
      • rMoveTo

        @Implementation
        protected void rMoveTo​(float dx,
                               float dy)
      • rLineTo

        @Implementation
        protected void rLineTo​(float dx,
                               float dy)
      • rQuadTo

        @Implementation
        protected void rQuadTo​(float dx1,
                               float dy1,
                               float dx2,
                               float dy2)
      • rCubicTo

        @Implementation
        protected void rCubicTo​(float x1,
                                float y1,
                                float x2,
                                float y2,
                                float x3,
                                float y3)
      • arcTo

        @Implementation
        protected void arcTo​(android.graphics.RectF oval,
                             float startAngle,
                             float sweepAngle)
      • arcTo

        @Implementation
        protected void arcTo​(android.graphics.RectF oval,
                             float startAngle,
                             float sweepAngle,
                             boolean forceMoveTo)
      • arcTo

        @Implementation(minSdk=21)
        protected void arcTo​(float left,
                             float top,
                             float right,
                             float bottom,
                             float startAngle,
                             float sweepAngle,
                             boolean forceMoveTo)
      • close

        @Implementation
        protected void close()
      • addRect

        @Implementation
        protected void addRect​(android.graphics.RectF rect,
                               android.graphics.Path.Direction dir)
      • addRect

        @Implementation
        protected void addRect​(float left,
                               float top,
                               float right,
                               float bottom,
                               android.graphics.Path.Direction dir)
      • addOval

        @Implementation(minSdk=21)
        protected void addOval​(float left,
                               float top,
                               float right,
                               float bottom,
                               android.graphics.Path.Direction dir)
      • addCircle

        @Implementation
        protected void addCircle​(float x,
                                 float y,
                                 float radius,
                                 android.graphics.Path.Direction dir)
      • addArc

        @Implementation(minSdk=21)
        protected void addArc​(float left,
                              float top,
                              float right,
                              float bottom,
                              float startAngle,
                              float sweepAngle)
      • addRoundRect

        @Implementation(minSdk=16)
        protected void addRoundRect​(android.graphics.RectF rect,
                                    float rx,
                                    float ry,
                                    android.graphics.Path.Direction dir)
      • addRoundRect

        @Implementation(minSdk=16)
        protected void addRoundRect​(android.graphics.RectF rect,
                                    float[] radii,
                                    android.graphics.Path.Direction dir)
      • addRoundRect

        @Implementation(minSdk=21)
        protected void addRoundRect​(float left,
                                    float top,
                                    float right,
                                    float bottom,
                                    float rx,
                                    float ry,
                                    android.graphics.Path.Direction dir)
      • addRoundRect

        @Implementation(minSdk=21)
        protected void addRoundRect​(float left,
                                    float top,
                                    float right,
                                    float bottom,
                                    float[] radii,
                                    android.graphics.Path.Direction dir)
      • addPath

        @Implementation
        protected void addPath​(android.graphics.Path src,
                               float dx,
                               float dy)
      • addPath

        @Implementation
        protected void addPath​(android.graphics.Path src)
      • addPath

        @Implementation
        protected void addPath​(android.graphics.Path src,
                               android.graphics.Matrix matrix)
      • offset

        @Implementation
        protected void offset​(float dx,
                              float dy,
                              android.graphics.Path dst)
      • offset

        @Implementation
        protected void offset​(float dx,
                              float dy)
      • setLastPoint

        @Implementation
        protected void setLastPoint​(float dx,
                                    float dy)
      • transform

        @Implementation
        protected void transform​(android.graphics.Matrix matrix,
                                 android.graphics.Path dst)
      • transform

        @Implementation
        protected void transform​(android.graphics.Matrix matrix)
      • fillBounds

        public void fillBounds​(android.graphics.RectF bounds)
        Fills the given RectF with the path bounds.
        Parameters:
        bounds - the RectF to be filled.