GeneralPath needlePath = new GeneralPath();
needlePath.moveTo(0, -0.75f);
needlePath.lineTo(0.2f, 0.7f);
needlePath.lineTo(0, 0.5f);
needlePath.lineTo(-0.2f, 0.7f);
needlePath.closePath();
needlePath.moveTo(-0.02f, 0);
needlePath.lineTo(0.02f, 0);
g2D.setStroke(new BasicStroke(4 / getWidth()));
g2D.draw(needlePath);
}