if (stroke instanceof BasicStroke
&& ((BasicStroke) stroke).getLineWidth() <= 1)
{
BasicStroke bstroke = (BasicStroke) stroke;
Point p1 = new Point(x1, y1);
Point p2 = new Point(x2, y2);
transform.transform(p1, p1);
transform.transform(p2, p2);
JavaLineRasterizer.LineDasher ld = (bstroke.getDashArray() == null) ? null
: new JavaLineRasterizer.LineDasher(bstroke.getDashArray(),
bstroke.getDashPhase());