private void setLineStroke() {
        if(lineStyle.equals(DOTTED_STYLE)){
            lineStroke = new BasicStroke(linewidth,
			BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER,
			1.f, new float[]{0,linewidth+3}, 0);
	}else if(lineStyle.equals(DASHED_STYLE)){
            lineStroke = new BasicStroke(linewidth,
			BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER,
			1.f, new float[]{5.0f, 3.0f}, 0);
	}else{
            lineStroke = new BasicStroke(linewidth,
            BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER);
        }
    }