|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
org.netbeans.editor.BaseTextUI
public class BaseTextUI
Text UI implementation
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter |
| Constructor Summary | |
|---|---|
BaseTextUI()
|
|
| Method Summary | |
|---|---|
void |
changedUpdate(DocumentEvent evt)
The change in document notification. |
View |
create(Element elem)
Creates a view for an element. |
View |
create(Element elem,
int p0,
int p1)
Creates a view for an element. |
int |
getBaseX(int y)
|
EditorKit |
getEditorKit(JTextComponent c)
Fetches the EditorKit for the UI. |
EditorUI |
getEditorUI()
Get extended UI. |
static JTextComponent |
getFocusedComponent()
|
int |
getNextVisualPositionFrom(JTextComponent t,
int pos,
Position.Bias b,
int direction,
Position.Bias[] biasRet)
Next visually represented model location where caret can be placed. |
int |
getPosFromY(int y)
|
protected String |
getPropertyPrefix()
|
int |
getYFromPos(int pos)
|
void |
insertUpdate(DocumentEvent evt)
Insert to document notification. |
protected void |
installKeyboardActions()
|
void |
installUI(JComponent c)
Installs the UI for a component. |
void |
invalidateStartY()
|
protected boolean |
isRootViewReplaceNecessary()
|
protected void |
modelChanged()
Called when the model of component is changed |
void |
preferenceChanged(boolean width,
boolean height)
Specifies that some preference has changed. |
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
protected void |
refresh()
|
void |
removeUpdate(DocumentEvent evt)
Remove from document notification. |
protected void |
rootViewReplaceNotify()
|
void |
settingsChange(SettingsChangeEvent evt)
|
void |
uninstallUI(JComponent c)
Deinstalls the UI for a component |
int |
viewToModel(JTextComponent c,
int x,
int y)
|
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installListeners, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseTextUI()
| Method Detail |
|---|
protected String getPropertyPrefix()
getPropertyPrefix in class BasicTextUIpublic static JTextComponent getFocusedComponent()
protected boolean isRootViewReplaceNecessary()
protected void rootViewReplaceNotify()
protected void modelChanged()
modelChanged in class BasicTextUIprotected void installKeyboardActions()
installKeyboardActions in class BasicTextUIpublic void installUI(JComponent c)
installUI in class BasicTextUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicTextUI
public int getYFromPos(int pos)
throws BadLocationException
BadLocationException
public int getPosFromY(int y)
throws BadLocationException
BadLocationExceptionpublic int getBaseX(int y)
public int viewToModel(JTextComponent c, int x, int y)
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException
getNextVisualPositionFrom in class BasicTextUIBadLocationExceptionpublic EditorKit getEditorKit(JTextComponent c)
getEditorKit in class BasicTextUIpublic EditorUI getEditorUI()
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class BasicTextUIpublic void insertUpdate(DocumentEvent evt)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent evt)
removeUpdate in interface DocumentListenerpublic void changedUpdate(DocumentEvent evt)
changedUpdate in interface DocumentListenerevt - The change notification from the currently associated document.public View create(Element elem)
create in interface ViewFactorycreate in class BasicTextUIelem - the element
public View create(Element elem, int p0, int p1)
create in class BasicTextUIelem - the elementp0 - the starting offset >= 0p1 - the ending offset >= p0
public void preferenceChanged(boolean width,
boolean height)
public void invalidateStartY()
public void settingsChange(SettingsChangeEvent evt)
settingsChange in interface SettingsChangeListenerprotected void refresh()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||