Code example for Region

Methods: setPath

0
     * Updates the internal data required to draw. 
     */ 
    private void update() { 
        mPath.reset();
        mPath.addOval(mOval, Direction.CW);
        mRegion = new Region((int)mOval.left, (int)mOval.top, (int) mOval.right, (int) mOval.bottom);
        mRegion.setPath(mPath, mRegion);
    } 
 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public boolean equals(Object o) {
        if (o instanceof OvalShape) {
            OvalShape ovalShape = (OvalShape)o;
            if (this.mOval.left == ovalShape.mOval.left &&
                    this.mOval.right == ovalShape.mOval.right &&
                    this.mOval.top == ovalShape.mOval.top &&
Experience pair programming with AI  Get Codota for Java