code: public void setEndCornerColor(Color color) {
          if (endColor == null) {
              endColor = new RGBColor(0.0, 0.0, 0.0);
          }
          setGradation(true);
          this.endColor = color;
      }
docs: Sets the end point's color for gradation.
  
  @param color The color of the end point.