All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JPlainView

java.lang.Object
   |
   +----com.sun.java.swing.text.JView
           |
           +----com.sun.java.swing.text.JPlainView

public class JPlainView
extends JView
Implements View interface for a simple multi-line text view that has text in one font and color. The view represents each child element as a line of text.

See Also:
View

Variable Index

 o metrics

Constructor Index

 o JPlainView(Element)

Method Index

 o changedUpdate(DocumentEvent, Shape, ViewFactory)
 o getLineLimit()
 o getPreferredShape(Shape, ViewFactory)
 o getTabSize()
 o insertUpdate(DocumentEvent, Shape, ViewFactory)
 o modelToView(Position, Shape, ViewFactory)
 o paint(Graphics, Shape, ViewFactory)
 o removeUpdate(DocumentEvent, Shape, ViewFactory)
 o viewToModel(Point, Shape, ViewFactory)

Variables

 o metrics
 protected FontMetrics metrics

Constructors

 o JPlainView
 public JPlainView(Element elem)

Methods

 o getTabSize
 protected int getTabSize()
 o getLineLimit
 protected int getLineLimit()
 o getPreferredShape
 public Shape getPreferredShape(Shape candidate,
                                ViewFactory f)
Overrides:
getPreferredShape in class JView
See Also:
getPreferredShape
 o paint
 public void paint(Graphics g,
                   Shape a,
                   ViewFactory f)
Overrides:
paint in class JView
See Also:
paint
 o modelToView
 public Shape modelToView(Position pos,
                          Shape a,
                          ViewFactory f) throws BadLocation
Throws: BadLocation
If the given position does not represent a valid location in the associated document.
Overrides:
modelToView in class JView
See Also:
modelToView
 o viewToModel
 public Position viewToModel(Point pt,
                             Shape a,
                             ViewFactory f)
Overrides:
viewToModel in class JView
See Also:
viewToModel
 o insertUpdate
 public void insertUpdate(DocumentEvent changes,
                          Shape a,
                          ViewFactory f)
Overrides:
insertUpdate in class JView
See Also:
insertUpdate
 o removeUpdate
 public void removeUpdate(DocumentEvent changes,
                          Shape a,
                          ViewFactory f)
Overrides:
removeUpdate in class JView
See Also:
removeUpdate
 o changedUpdate
 public void changedUpdate(DocumentEvent changes,
                           Shape a,
                           ViewFactory f)
Overrides:
changedUpdate in class JView
See Also:
changedUpdate

All Packages  Class Hierarchy  This Package  Previous  Next  Index