stroke = new BasicStroke(
            0.2f*ds,//width
            BasicStroke.CAP_BUTT,
            BasicStroke.JOIN_BEVEL);//don't care
    g2.setStroke(stroke);
    g2.setPaint(Color.green);
    g2.draw(new Line2D.Double(
                -0.75*ds,1.5*ds,-0.5*ds,0.5*ds));
    g2.draw(new Line2D.Double(
                -0.5*ds,0.5*ds,-0.25*ds,1.5*ds));

Figure 7