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)
Creates a view from the given structural element of a document.
 o create(Element, int, int)
Creates a view from a portion of the given structural element of a document.
 o getContainer()
Fetches the Container that is hosting the views created by this factory.

Methods

 o getContainer
 public abstract Container getContainer()
Fetches 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)
Creates a view from the given structural element of a document.

Parameters:
elem - the piece of the document to build a view of
Returns:
the view
See Also:
View
 o create
 public abstract View create(Element elem,
                             int p0,
                             int p1)
Creates 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
p0 - the beginning of the range
p1 - the end of the range
Returns:
the view
See Also:
View

All Packages  Class Hierarchy  This Package  Previous  Next  Index