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