View
|
create(Element elem)
Creates a view for an element.
|
View
|
create(Element elem, int p0, int p1)
Creates a view for an element.
|
Caret
|
createCaret()
Creates the object to use for a caret.
|
Highlighter
|
createHighlighter()
Creates the object to use for adding highlights.
|
Keymap
|
createKeymap()
Creates the keymap to use for the text component, and installs
any necessary bindings into it.
|
void
|
damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)
Causes the portion of the view responsible for the
given part of the model to be repainted.
|
void
|
damageRange(JTextComponent tc, int p0, int p1)
Causes the portion of the view responsible for the
given part of the model to be repainted.
|
final
JTextComponent
|
getComponent()
Fetches the text component associated with this
UI implementation.
|
EditorKit
|
getEditorKit(JTextComponent tc)
Fetches the EditorKit for the UI.
|
String
|
getKeymapName()
Fetches the name of the keymap that will be installed/used
by default for this UI.
|
Dimension
|
getMaximumSize(JComponent c)
Gets the maximum size for the editor component.
|
Dimension
|
getMinimumSize(JComponent c)
Gets the minimum size for the editor component.
|
int
|
getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Bias[] biasRet)
Provides a way to determine the next visually represented model
location that one might place a caret.
|
Dimension
|
getPreferredSize(JComponent c)
Gets the preferred size for the editor component.
|
abstract
String
|
getPropertyPrefix()
Gets the name used as a key to look up properties through the
UIManager.
|
View
|
getRootView(JTextComponent tc)
Fetches a View with the allocation of the associated
text component (i.e.
|
String
|
getToolTipText(JTextComponent t, Point pt)
Returns the string to be used as the tooltip at the passed in location.
|
Rectangle
|
getVisibleEditorRect()
Gets the allocation to give the root View.
|
void
|
installDefaults()
Initializes component properties, e.g.
|
void
|
installKeyboardActions()
|
void
|
installListeners()
Installs listeners for the UI.
|
void
|
installUI(JComponent c)
Installs the UI for a component.
|
void
|
modelChanged()
Flags model changes.
|
Rectangle
|
modelToView(JTextComponent tc, int pos, Position.Bias bias)
Converts the given location in the model to a place in
the view coordinate system.
|
Rectangle
|
modelToView(JTextComponent tc, int pos)
Converts the given location in the model to a place in
the view coordinate system.
|
final
void
|
paint(Graphics g, JComponent c)
Paints the interface.
|
void
|
paintBackground(Graphics g)
Paints a background for the view.
|
void
|
paintSafely(Graphics g)
Paints the interface safely with a guarantee that
the model won't change from the view of this thread.
|
void
|
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed
on the associated JTextComponent.
|
final
void
|
setView(View v)
Sets the current root of the view hierarchy and calls invalidate().
|
void
|
uninstallDefaults()
Sets the component properties that haven't been explicitly overridden to
null.
|
void
|
uninstallKeyboardActions()
|
void
|
uninstallListeners()
Uninstalls listeners for the UI.
|
void
|
uninstallUI(JComponent c)
Deinstalls the UI for a component.
|
void
|
update(Graphics g, JComponent c)
Superclass paints background in an uncontrollable way
(i.e.
|
int
|
viewToModel(JTextComponent tc, Point pt, Bias[] biasReturn)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|
int
|
viewToModel(JTextComponent tc, Point pt)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|