All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.text.ViewFactory

public interface ViewFactory
A factory to create a view of some portion of document subject. This is intended to enable customization of how views get mapped over a subject.


Method Index

 o create(Element)
Create a view from the given structural element of a document.
 o create(Element, Range)
Create a view from a portion of the given structural element of a document.
 o getContainer()
Fetch the Container that is hosting the views created by this factory.

Methods

 o getContainer
 public abstract Container getContainer()
Fetch the Container that is hosting the views created by this factory. The coordinate system for the views is in terms of this Container, and this Container can be used for things like damaging regions so they will be repainted.

Returns:
s The Container hosting the views for rendering and damage.
 o create
 public abstract View create(Element elem)
Create a view from the given structural element of a document.

Parameters:
elem - The piece of the document to build a view of
See Also:
View
 o create
 public abstract View create(Element elem,
                             Range rng)
Create a view from a portion of the given structural element of a document.

Parameters:
elem - The piece of the document to build a view of
rng - The portion of the element to use. The range should be within the range of the element.
See Also:
View

All Packages  Class Hierarchy  This Package  Previous  Next  Index