All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JView

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

public abstract class JView
extends Object
implements View
Implements some default behavior for the View interface to simplify creation of new text-oriented views. The implementation represents an entire element from the model, and claims to be unbreakable (ie doesn't support breaking behavior).


Constructor Index

 o JView(Element)

Method Index

 o breakView(int, float, Shape)
 o changedUpdate(DocumentEvent, Shape, ViewFactory)
 o getBreakPenalty(int, float)
 o getDocument()
 o getElement()
 o getPreferredShape(Shape, ViewFactory)
 o getRange()
 o getResizePenalty(int, float)
 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)

Constructors

 o JView
 public JView(Element elem)

Methods

 o getPreferredShape
 public abstract Shape getPreferredShape(Shape candidate,
                                         ViewFactory f)
See Also:
getPreferredShape
 o paint
 public abstract void paint(Graphics g,
                            Shape allocation,
                            ViewFactory f)
See Also:
paint
 o modelToView
 public abstract 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.
See Also:
modelToView
 o viewToModel
 public abstract Position viewToModel(Point pt,
                                      Shape a,
                                      ViewFactory f)
See Also:
viewToModel
 o insertUpdate
 public abstract void insertUpdate(DocumentEvent e,
                                   Shape a,
                                   ViewFactory f)
See Also:
insertUpdate
 o removeUpdate
 public abstract void removeUpdate(DocumentEvent e,
                                   Shape a,
                                   ViewFactory f)
See Also:
removeUpdate
 o changedUpdate
 public abstract void changedUpdate(DocumentEvent e,
                                    Shape a,
                                    ViewFactory f)
See Also:
changedUpdate
 o getDocument
 public Document getDocument()
See Also:
getDocument
 o getRange
 public Range getRange()
See Also:
getRange
 o getElement
 public Element getElement()
See Also:
getElement
 o breakView
 public View breakView(int axis,
                       float len,
                       Shape a)
See Also:
breakView
 o getBreakPenalty
 public int getBreakPenalty(int axis,
                            float len)
See Also:
getBreakPenalty
 o getResizePenalty
 public int getResizePenalty(int axis,
                             float len)
See Also:
getResizePenalty

All Packages  Class Hierarchy  This Package  Previous  Next  Index