public class SynthTextPaneUI extends SynthEditorPaneUI
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已经添加到java.beans
包中。 请参阅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 c)
为JTextPane创建一个UI。
|
protected String |
getPropertyPrefix()
获取通过UIManager查找属性的键。
|
void |
installUI(JComponent c)
安装组件的UI。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框
|
protected void |
propertyChange(PropertyChangeEvent evt)
当在关联的JTextComponent上更改bound属性时,将调用此方法。
|
getContext, installDefaults, paint, paintBackground, uninstallDefaults, update
getEditorKit, uninstallUI
create, 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, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
public static ComponentUI createUI(JComponent c)
c
- JTextPane对象
protected String getPropertyPrefix()
getPropertyPrefix
在
BasicEditorPaneUI
public void installUI(JComponent c)
null
或null
的实例时才设置 。 installUI
在
BasicEditorPaneUI
c
- 编辑器组件
BasicTextUI.installUI(javax.swing.JComponent)
,
ComponentUI.installUI(javax.swing.JComponent)
protected void propertyChange(PropertyChangeEvent evt)
propertyChange
在
SynthEditorPaneUI
evt
- 财产变更事件
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder
在接口
SynthUI
paintBorder
在
SynthEditorPaneUI
context
- 组件上下文
g
-
Graphics
上画
x
- X坐标
y
- Y坐标
w
- 边框的宽度
h
- 边框的高度
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.