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 9 import java.awt.Container; 10 11 /** 12 * A factory to create a view of some portion of document subject. 13 * This is intended to enable customization of how views get 14 * mapped over a document model. 15 * 16 * @author Timothy Prinzing 17 * @version 1.18 12/19/03 18 */ 19 public interface ViewFactory { 20 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 31 } 32