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
-
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()
- 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.
-
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: BadLocation
- 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.
- Returns:
- s the offset from the start of the document
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.
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.
getDefaultMargin
public abstract Insets getDefaultMargin()
- Fetches the default margin space for the text ui.
All Packages Class Hierarchy This Package Previous Next Index