All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.plaf.TextUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.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()
Fetches 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: BadLocationException
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.
 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.

Returns:
the editor kit binding
 o getRootView
public abstract View getRootView()
Fetches 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.

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

Returns:
the margins

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature