1. /*
  2. * @(#)ViewFactory.java 1.18 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.text;
  8. import java.awt.Container;
  9. /**
  10. * A factory to create a view of some portion of document subject.
  11. * This is intended to enable customization of how views get
  12. * mapped over a document model.
  13. *
  14. * @author Timothy Prinzing
  15. * @version 1.18 12/19/03
  16. */
  17. public interface ViewFactory {
  18. /**
  19. * Creates a view from the given structural element of a
  20. * document.
  21. *
  22. * @param elem the piece of the document to build a view of
  23. * @return the view
  24. * @see View
  25. */
  26. public View create(Element elem);
  27. }