public class BaseTextUI extends BasicTextUI implements PropertyChangeListener, DocumentListener, AtomicLockListener
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter| Constructor and Description |
|---|
BaseTextUI() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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, viewToModelcontains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorprotected 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 BasicTextUIpublic int getYFromPos(int pos)
throws BadLocationException
pos - offset in a read-locked documentBadLocationException - 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 BasicTextUIpublic 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 elementpublic View create(Element elem, int p0, int p1)
create in class BasicTextUIelem - the elementp0 - the starting offset >= 0p1 - the ending offset >= p0public void preferenceChanged(boolean width,
boolean height)
public void invalidateStartY()
protected void refresh()
Built on May 20 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.