|
org.netbeans.modules.editor.lib/3 3.23.0 19 | |||||||||
| 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 |
atomicLock(AtomicLockEvent evt)
|
void |
atomicUnlock(AtomicLockEvent evt)
|
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. |
void |
damageRange(JTextComponent t,
int p0,
int p1,
Position.Bias p0Bias,
Position.Bias p1Bias)
|
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)
Return y coordinate value for given offset. |
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 |
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, 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, getBaseline, getBaselineResizeBehavior |
| 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
pos - offset in a read-locked document
BadLocationException - in case offset is not in document's bounds.
public int getPosFromY(int y)
throws BadLocationException
BadLocationExceptionpublic int getBaseX(int y)
public int viewToModel(JTextComponent c,
int x,
int y)
public void damageRange(JTextComponent t,
int p0,
int p1,
Position.Bias p0Bias,
Position.Bias p1Bias)
damageRange in class BasicTextUI
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 void atomicLock(AtomicLockEvent evt)
atomicLock in interface AtomicLockListenerpublic void atomicUnlock(AtomicLockEvent evt)
atomicUnlock in interface AtomicLockListenerpublic 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()
protected void refresh()
|
org.netbeans.modules.editor.lib/3 3.23.0 19 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||