public void setBorder(int width, int color) {
        if (mBorderPaint == null) {
            mBorderPaint = new Paint();
            mBorderPaint.setAntiAlias(true);
            mBorderPaint.setStyle(Style.STROKE);
        }
        mBorderPaint.setColor(color);
        mBorderPaint.setStrokeWidth(width);

        invalidate();
    }
Set horizontal size of wave according to <code>waveLengthRatio</code>

@param waveLengthRatio Default to be 1.
                       Ratio of wave length to width of WaveView.
library/src/main/java/com/gelitenight/waveview/library/WaveView.java