@Override
    protected Parcelable onSaveInstanceState() {
        Parcelable superState = super.onSaveInstanceState();
        return new SavedState(superState, patternToIntArray(),
                patternDisplayMode.ordinal(), inputEnabled, inStealthMode,
                enableHapticFeedback);
    }
@param canvas
@param leftX
@param topY
@param partOfPattern Whether this circle is part of the pattern.
android-patternview/src/main/java/com/eftimoff/patternview/PatternView.java