private static void paint(final Graphics2D g2d, final float size) { final Path2D.Float path = new Path2D.Float(); for (float angle = 1f / 3f; angle <= 90f; angle += 1f) { double angRad = Math.toRadians(angle); double cos = Math.cos(angRad); double sin = Math.sin(angRad); path.reset(); path.moveTo(5f * cos, 5f * sin); path.lineTo(size * cos, size * sin); g2d.draw(path); } }