stroke = new BasicStroke(
               0.2f*ds,//width
               BasicStroke.CAP_ROUND,
               BasicStroke.JOIN_MITER,
               .057f*ds);//miterlimit
    g2.setStroke(stroke);
     
    GeneralPath gp5 = new GeneralPath();
    gp5.moveTo(0.75f*ds,0.25f*ds);
    gp5.lineTo(1.00f*ds,1.25f*ds);
    gp5.lineTo(1.25f*ds,0.25f*ds);
     
    g2.setPaint(Color.green);
    g2.draw(gp5);

Figure 13