@SuppressWarnings("UnusedParameters")
  private static float getX1(JComponent c, GradientDirection d) {
    return 0;
  }
@SuppressWarnings("UnusedParameters")
  private static float getX1(JComponent c, GradientDirection d)