Code example for Region

Methods: setPath

0
     * Updates the internal data required to draw. 
     */ 
    private void update() { 
        mPath.reset();
        mPath.addRoundRect(mRect, mRX, mRY, Direction.CW);
        mRegion = new Region((int)getMinX(), (int)getMinY(), (int) getMaxX(), (int) getMaxY());
        mRegion.setPath(mPath, mRegion);
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public boolean equals(Object o) {
        if (o instanceof RoundRectShape) {
            RoundRectShape roundRectShape = (RoundRectShape)o;
            if (this.getX() == roundRectShape.getX() && 
                    this.getY() == roundRectShape.getY() && 
                    this.getWidth() == roundRectShape.getWidth() && 
                    this.getHeight() == roundRectShape.getHeight()&&
                    this.mRX == roundRectShape.mRX &&