1. /*
  2. * @(#)ColorUIResource.java 1.9 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.plaf;
  11. import java.awt.Color;
  12. import javax.swing.plaf.UIResource;
  13. /*
  14. * A subclass of Color that implements UIResource. UI
  15. * classes that create colors should use this class.
  16. * <p>
  17. * <strong>Warning:</strong>
  18. * Serialized objects of this class will not be compatible with
  19. * future Swing releases. The current serialization support is appropriate
  20. * for short term storage or RMI between applications running the same
  21. * version of Swing. A future release of Swing will provide support for
  22. * long term persistence.
  23. *
  24. * @see javax.swing.plaf.UIResource
  25. * @version 1.9 02/02/00
  26. * @author Hans Muller
  27. *
  28. */
  29. public class ColorUIResource extends Color implements UIResource
  30. {
  31. public ColorUIResource(int r, int g, int b) {
  32. super(r, g, b);
  33. }
  34. public ColorUIResource(int rgb) {
  35. super(rgb);
  36. }
  37. public ColorUIResource(float r, float g, float b) {
  38. super(r, g, b);
  39. }
  40. public ColorUIResource(Color c) {
  41. super(c.getRed(), c.getGreen(), c.getBlue());
  42. }
  43. }