JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
javax.swing.text.View

Packages that use View
javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look-and-feel. 
javax.swing.plaf.multi The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.text.html Provides the class HTMLEditorKit and supporting classes for creating HTML text editors. 
 

Uses of View in javax.swing.plaf
 

Methods in javax.swing.plaf that return View
abstract  View TextUI.getRootView(JTextComponent t)
          Fetches a View with the allocation of the associated text component (i.e.
 

Uses of View in javax.swing.plaf.basic
 

Methods in javax.swing.plaf.basic that return View
 View BasicTextUI.getRootView(JTextComponent tc)
          Fetches a View with the allocation of the associated text component (i.e.
 View BasicTextUI.create(Element elem)
          Creates a view for an element.
 View BasicTextUI.create(Element elem, int p0, int p1)
          Creates a view for an element.
static View BasicHTML.createHTMLView(JComponent c, String html)
          Create an html renderer for the given component and string of html.
 View BasicTextFieldUI.create(Element elem)
          Creates a view (FieldView) based on an element.
 View BasicPasswordFieldUI.create(Element elem)
          Creates a view (PasswordView) for an element.
 View BasicTextAreaUI.create(Element elem)
          Creates the view for an element.
 

Methods in javax.swing.plaf.basic with parameters of type View
protected  void BasicTextUI.setView(View v)
          Sets the current root of the view hierarchy and calls invalidate().
 

Uses of View in javax.swing.plaf.multi
 

Methods in javax.swing.plaf.multi that return View
 View MultiTextUI.getRootView(JTextComponent a)
          Call getRootView on each UI handled by this MultiUI.
 

Uses of View in javax.swing.text
 

Subclasses of View in javax.swing.text
 class AsyncBoxView
          A box that does layout asynchronously.
 class BoxView
          A view that arranges its children into a box shape by tiling it's children along an axis.
 class ComponentView
          Component decorator that implements the view interface.
 class CompositeView
          A view that is composed of other views (has children).
 class FieldView
          Extends the multi-line plain text view to be suitable for a single-line editor view.
 class FlowView
          A View that tries to flow it's children into some partially constrained space.
 class GlyphView
          A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.
 class IconView
          Icon decorator that implements the view interface.
 class LabelView
          A LabelView is a styled chunk of text that represents a view mapped over an element in the text model.
 class ParagraphView
          View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.
 class PasswordView
          Implements a View suitable for use in JPasswordField UI implementations.
 class PlainView
          Implements View interface for a simple multi-line text view that has text in one font and color.
 class TableView
           Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells.
 class TableView.TableCell
          Deprecated. A table cell can now be any View implementation.
 class TableView.TableRow
          View of a row in a row-centric table.
 class WrappedPlainView
          View of plain text (text with only one font and color) that does line-wrapping.
 class ZoneView
          ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations.
 

Fields in javax.swing.text declared as View
protected  View FlowView.layoutPool
          These are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view).
 

Methods in javax.swing.text that return View
 View View.getParent()
          Returns the parent of the view.
 View View.getView(int n)
          Gets the nth child view.
 View View.breakView(int axis, int offset, float pos, float len)
          Tries to break this view on the given axis.
 View View.createFragment(int p0, int p1)
          Create a view that represents a portion of the element.
 View CompositeView.getView(int n)
          Gets the n-th view in this container.
protected abstract  View CompositeView.getViewAtPoint(int x, int y, Rectangle alloc)
          Fetches the child view at the given point.
protected  View CompositeView.getViewAtPosition(int pos, Rectangle a)
          Fetches the child view that represents the given position in the model.
 View GlyphView.breakView(int axis, int p0, float pos, float len)
          Breaks this view on the given axis at the given length.
 View GlyphView.createFragment(int p0, int p1)
          Creates a view that represents a portion of the element.
 View ViewFactory.create(Element elem)
          Creates a view from the given structural element of a document.
protected  View BoxView.getViewAtPoint(int x, int y, Rectangle alloc)
          Fetches the child view at the given point.
protected abstract  View FlowView.createRow()
          Create a View that should be used to hold a a rows worth of children in a flow.
protected  View ParagraphView.getLayoutView(int index)
          The child views of the paragraph are rows which have been used to arrange pieces of the Views that represent the child elements.
protected  View ParagraphView.createRow()
          Create a View that should be used to hold a a rows worth of children in a flow.
 View ParagraphView.breakView(int axis, float len, Shape a)
          Breaks this view on the given axis at the given length.
protected  View FlowView.FlowStrategy.getLogicalView(FlowView fv)
          This method gives flow strategies access to the logical view of the FlowView.
protected  View FlowView.FlowStrategy.createView(FlowView fv, int startOffset, int spanLeft, int rowIndex)
          Creates a view that can be used to represent the current piece of the flow.
 View AsyncBoxView.getView(int n)
          Gets the nth child view.
 View AsyncBoxView.ChildState.getChildView()
          Fetch the child view this record represents
protected  View TableView.getViewAtPosition(int pos, Rectangle a)
          Fetches the child view that represents the given position in the model.
protected  View TableView.TableRow.getViewAtPosition(int pos, Rectangle a)
          Fetches the child view that represents the given position in the model.
protected  View ZoneView.createZone(int p0, int p1)
          Create a view to represent a zone for the given range within the model (which should be within the range of this objects responsibility).
 

Methods in javax.swing.text with parameters of type View
 void View.preferenceChanged(View child, boolean width, boolean height)
          Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.
 void View.setParent(View parent)
          Establishes the parent view for this view.
 void View.insert(int offs, View v)
          Inserts a single child view.
 void View.append(View v)
          Appends a single child view.
 void View.replace(int offset, int length, View[] views)
          Replace child views.
protected  void View.forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f)
          Forward the DocumentEvent to the give child view.
 void CompositeView.setParent(View parent)
          Sets the parent of the view.
 void CompositeView.replace(int offset, int length, View[] views)
          Replace child views.
 void BoxView.replace(int index, int length, View[] elems)
          Invalidates the layout and resizes the cache of requests/allocations.
 void BoxView.preferenceChanged(View child, boolean width, boolean height)
          This is called by a child to indicated its preferred span has changed.
abstract  void LayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          When leaf Views (such as LabelView) are rendering they should call into this method.
 void DefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          When leaf Views (such as LabelView) are rendering they should call into this method.
abstract  Shape LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
           
 Shape DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
          Paints a portion of a highlight.
protected  AsyncBoxView.ChildState AsyncBoxView.createChildState(View v)
          New ChildState records are created through this method to allow subclasses the extend the ChildState records to do/hold more
 void AsyncBoxView.replace(int offset, int length, View[] views)
          Calls the superclass to update the child views, and updates the status records for the children.
 void AsyncBoxView.setParent(View parent)
          Sets the parent of the view.
 void AsyncBoxView.preferenceChanged(View child, boolean width, boolean height)
          Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.
 void TableView.replace(int offset, int length, View[] views)
          Change the child views.
 void TableView.TableRow.replace(int offset, int length, View[] views)
          Change the child views.
 void ComponentView.setParent(View p)
          Sets the parent for a child view.
protected  void ZoneView.zoneWasLoaded(View zone)
          Called by a zone when it gets loaded.
protected  void ZoneView.unloadZone(View zone)
          Unload a zone (Convert the zone to its memory saving state).
protected  boolean ZoneView.isZoneLoaded(View zone)
          Determine if a zone is in the loaded state.
 

Constructors in javax.swing.text with parameters of type View
AsyncBoxView.ChildState(View v)
          Construct a child status.
 

Uses of View in javax.swing.text.html
 

Subclasses of View in javax.swing.text.html
 class BlockView
          A view implementation to display a block (as a box) with CSS specifications.
 class FormView
          Component decorator that implements the view interface for form elements, <input>, <textarea>, and <select>.
 class InlineView
          Displays the inline element styles based upon css attributes.
 class ListView
          A view implementation to display an html list
 class ObjectView
          Component decorator that implements the view interface for <object> elements.
 

Methods in javax.swing.text.html that return View
 View HTMLEditorKit.HTMLFactory.create(Element elem)
          Creates a view from an element.
 

Methods in javax.swing.text.html with parameters of type View
 AttributeSet StyleSheet.getViewAttributes(View v)
          Fetches a set of attributes to use in the view for displaying.
 float StyleSheet.BoxPainter.getInset(int side, View v)
          Fetches the inset needed on a given side to account for the margin, border, and padding.
 void StyleSheet.BoxPainter.paint(Graphics g, float x, float y, float w, float h, View v)
          Paints the CSS box according to the attributes given.
 void StyleSheet.ListPainter.paint(Graphics g, float x, float y, float w, float h, View v, int item)
          Paints the CSS list decoration according to the attributes given.
 void ParagraphView.setParent(View parent)
          Establishes the parent view for this view.
 void BlockView.setParent(View parent)
          Establishes the parent view for this view.
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.