stroke = new BasicStroke( 0.2f*ds,//width BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND); g2.setStroke(stroke); GeneralPath gp3 = new GeneralPath(); gp3.moveTo(1.25f*ds,-1.25f*ds); gp3.lineTo(1.50f*ds,-0.25f*ds); gp3.lineTo(1.75f*ds,-1.25f*ds); g2.setPaint(Color.red); g2.draw(gp3); Figure 11 |