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
TextUI()
-
damageRange(int, int)
- Causes the portion of the view responsible for the
given part of the model to be repainted.
getDefaultMargin()
- Fetches the default margin space for the text ui.
getEditorKit()
- Fetches the binding of services that set a policy
for the type of document being edited.
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.
modelToView(int)
- Converts the given location in the model to a place in
the view coordinate system.
viewToModel(Point)
- Converts the given place in the view coordinate system
to the nearest representative location in the model.
TextUI
public TextUI()
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
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.
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
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
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
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