fill.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2007 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview Represents a fill goog.graphics.
  16. * @author arv@google.com (Erik Arvidsson)
  17. */
  18. goog.provide('goog.graphics.Fill');
  19. /**
  20. * Creates a fill object
  21. * @constructor
  22. * @deprecated goog.graphics is deprecated. It existed to abstract over browser
  23. * differences before the canvas tag was widely supported. See
  24. * http://en.wikipedia.org/wiki/Canvas_element for details.
  25. */
  26. goog.graphics.Fill = function() {};
  27. /**
  28. * @return {string} The start color of a gradient fill.
  29. */
  30. goog.graphics.Fill.prototype.getColor1 = goog.abstractMethod;
  31. /**
  32. * @return {string} The end color of a gradient fill.
  33. */
  34. goog.graphics.Fill.prototype.getColor2 = goog.abstractMethod;