public void setLineWidth(float lineWidth) {
        // Automatic Stroke Adjustment
        if (lineWidth <= Float.MIN_VALUE || lineWidth >= Float.MAX_VALUE ||
                lineWidth == 0) {
            // set line width to a very small none zero number. 
            this.lineWidth = 0.001f;
        } else {
            this.lineWidth = lineWidth;
        }

    }