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
-
metrics
-
-
JPlainView(Element)
-
-
changedUpdate(DocumentEvent, Shape, ViewFactory)
-
-
getLineLimit()
-
-
getPreferredShape(Shape, ViewFactory)
-
-
getTabSize()
-
-
insertUpdate(DocumentEvent, Shape, ViewFactory)
-
-
modelToView(Position, Shape, ViewFactory)
-
-
paint(Graphics, Shape, ViewFactory)
-
-
removeUpdate(DocumentEvent, Shape, ViewFactory)
-
-
viewToModel(Point, Shape, ViewFactory)
-
metrics
protected FontMetrics metrics
JPlainView
public JPlainView(Element elem)
getTabSize
protected int getTabSize()
getLineLimit
protected int getLineLimit()
getPreferredShape
public Shape getPreferredShape(Shape candidate,
ViewFactory f)
- Overrides:
- getPreferredShape in class JView
- See Also:
- getPreferredShape
paint
public void paint(Graphics g,
Shape a,
ViewFactory f)
- Overrides:
- paint in class JView
- See Also:
- paint
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
viewToModel
public Position viewToModel(Point pt,
Shape a,
ViewFactory f)
- Overrides:
- viewToModel in class JView
- See Also:
- viewToModel
insertUpdate
public void insertUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
- Overrides:
- insertUpdate in class JView
- See Also:
- insertUpdate
removeUpdate
public void removeUpdate(DocumentEvent changes,
Shape a,
ViewFactory f)
- Overrides:
- removeUpdate in class JView
- See Also:
- removeUpdate
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