public class SynthTextPaneUI extends SynthEditorPaneUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
BasicTextUI.BasicCaret , BasicTextUI.BasicHighlighter DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| Constructor and Description |
|---|
SynthTextPaneUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
Creates a UI for the JTextPane.
|
protected String |
getPropertyPrefix()
Fetches the name used as a key to lookup properties through the UIManager.
|
void |
installUI(JComponent
Installs the UI for a component.
|
void |
paintBorder(SynthContext
Paints the border.
|
protected void |
propertyChange(PropertyChangeEvent
This method gets called when a bound property is changed on the associated JTextComponent.
|
getContext, installDefaults, paint, paintBackground, uninstallDefaults, updategetEditorKit, uninstallUIcreate, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, viewToModel, viewToModelcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorpublic static ComponentUIcreateUI(JComponent c)
c - the JTextPane object
protected StringgetPropertyPrefix()
getPropertyPrefix in class
BasicEditorPaneUI
public void installUI(JComponentc)
null or an instance of UIResource. installUI in class
BasicEditorPaneUI
c - the editor component
BasicTextUI.installUI(javax.swing.JComponent) ,
ComponentUI.installUI(javax.swing.JComponent)
protected void propertyChange(PropertyChangeEventevt)
propertyChange in class
SynthEditorPaneUI
evt - the property change event
public void paintBorder(SynthContextcontext, Graphics g, int x, int y, int w, int h)
paintBorder in interface
SynthUI
paintBorder in class
SynthEditorPaneUI
context - a component context
g -
Graphics to paint on
x - the X coordinate
y - the Y coordinate
w - width of the border
h - height of the border