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