All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.plaf.TextUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.TextUI

public abstract class TextUI
extends ComponentUI
Text editor user interface


Constructor Index

 o TextUI()

Method Index

 o damageRange(int, int)
Causes the portion of the view responsible for the given part of the model to be repainted.
 o getDefaultMargin()
Fetches the default margin space for the text ui.
 o getEditorKit()
Fetches the binding of services that set a policy for the type of document being edited.
 o getRootView()
Fetch a View with the allocation of the associated text component (ie the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.
 o modelToView(int)
Converts the given location in the model to a place in the view coordinate system.
 o viewToModel(Point)
Converts the given place in the view coordinate system to the nearest representative location in the model.

Constructors

 o TextUI
 public TextUI()

Methods

 o modelToView
 public abstract Rectangle modelToView(int pos) throws BadLocationException
Converts the given location in the model to a place in the view coordinate system.

Parameters:
pos - the local location in the model to translate
Returns:
the coordinates as a rectangle
Throws: BadLocation
if the given position does not represent a valid location in the associated document
 o viewToModel
 public abstract int viewToModel(Point pt)
Converts the given place in the view coordinate system to the nearest representative location in the model.

Parameters:
pt - the location in the view to translate. This should be in the same coordinate system as the mouse events.
Returns:
s the offset from the start of the document
 o damageRange
 public abstract void damageRange(int p0,
                                  int p1)
Causes the portion of the view responsible for the given part of the model to be repainted.

Parameters:
p0 - the beginning of the range
p1 - the end of the range
 o getEditorKit
 public abstract EditorKit getEditorKit()
Fetches the binding of services that set a policy for the type of document being edited. This contains things like the commands available, stream readers and writers, etc.

 o getRootView
 public abstract View getRootView()
Fetch a View with the allocation of the associated text component (ie the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.

 o getDefaultMargin
 public abstract Insets getDefaultMargin()
Fetches the default margin space for the text ui.


All Packages  Class Hierarchy  This Package  Previous  Next  Index