1. /*
  2. * @(#)Renderer.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;
  11. import java.awt.Component;
  12. /**
  13. * Defines the requirements for an object responsible for
  14. * "rendering" (displaying) a value.
  15. *
  16. * @version 1.9 02/02/00
  17. * @author Arnaud Weber
  18. */
  19. public interface Renderer {
  20. /**
  21. * Specifies the value to display and whether or not the
  22. * value should be portrayed as "currently selected".
  23. *
  24. * @param aValue an Object object
  25. * @param isSelected a boolean
  26. */
  27. void setValue(Object aValue,boolean isSelected);
  28. /**
  29. * Returns the component used to render the value.
  30. *
  31. * @return the Component responsible for displaying the value
  32. */
  33. Component getComponent();
  34. }