1. /*
  2. * @(#)ViewFactory.java 1.15 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.text;
  11. import java.awt.Container;
  12. /**
  13. * A factory to create a view of some portion of document subject.
  14. * This is intended to enable customization of how views get
  15. * mapped over a document model.
  16. *
  17. * @author Timothy Prinzing
  18. * @version 1.15 02/02/00
  19. */
  20. public interface ViewFactory {
  21. /**
  22. * Creates a view from the given structural element of a
  23. * document.
  24. *
  25. * @param elem the piece of the document to build a view of
  26. * @return the view
  27. * @see View
  28. */
  29. public View create(Element elem);
  30. }