Class com.sun.java.swing.plaf.TextUI
java.lang.Object
|
+--com.sun.java.swing.plaf.ComponentUI
|
+--com.sun.java.swing.plaf.TextUI
- Direct Known Subclasses:
- com.sun.java.swing.plaf.basic.BasicTextUI
- public abstract class TextUI
- extends ComponentUI
Text editor user interface
Method Summary
|
abstract void
|
damageRange(JTextComponent t,
int p0,
int p1)
Causes the portion of the view responsible for the
given part of the model to be repainted. |
abstract EditorKit
|
getEditorKit(JTextComponent t)
Fetches the binding of services that set a policy
for the type of document being edited. |
abstract View
|
getRootView(JTextComponent t)
Fetches a View with the allocation of the associated
text component (i.e. the root of the hierarchy) that
can be traversed to determine how the model is being
represented spatially. |
abstract Rectangle
|
modelToView(JTextComponent t,
int pos)
Converts the given location in the model to a place in
the view coordinate system. |
abstract int
|
viewToModel(JTextComponent t,
Point pt)
Converts the given place in the view coordinate system
to the nearest representative location in the model. |
Methods inherited from class com.sun.java.swing.plaf.ComponentUI |
contains
, createUI
, getAccessibleChild
, getAccessibleChildrenCount
, getMaximumSize
, getMinimumSize
, getPreferredSize
, installUI
, paint
, uninstallUI
, update
|
Methods inherited from class java.lang.Object |
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
|
TextUI
public TextUI()
modelToView
public abstract Rectangle modelToView(JTextComponent t,
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 >= 0- 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(JTextComponent t,
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(JTextComponent t,
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 >= 0
p1
- the end of the range >= p0
getEditorKit
public abstract EditorKit getEditorKit(JTextComponent t)
- 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(JTextComponent t)
- Fetches a View with the allocation of the associated
text component (i.e. the root of the hierarchy) that
can be traversed to determine how the model is being
represented spatially.
- Returns:
- the view
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.