g2.setStroke(new BasicStroke(0.05f*ds));

Figure 2