public class SynthFormattedTextFieldUI extends SynthTextFieldUI
JFormattedTextField
提供Synth L&F UI代表。
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
Constructor and Description |
---|
SynthFormattedTextFieldUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
为JFormattedTextField创建一个UI。
|
protected String |
getPropertyPrefix()
获取通过UIManager查找属性的键。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
画边框
|
getContext, installDefaults, paint, paintBackground, propertyChange, uninstallDefaults, update
create, getBaseline, getBaselineResizeBehavior
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallKeyboardActions, uninstallListeners, uninstallUI, viewToModel, viewToModel
contains, getAccessibleChild, getAccessibleChildrenCount
public static ComponentUI createUI(JComponent c)
c
- 格式化的文本字段
protected String getPropertyPrefix()
getPropertyPrefix
在
BasicTextFieldUI
public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
paintBorder
在界面
SynthUI
paintBorder
在
SynthTextFieldUI
类
context
- 组件上下文
g
-
Graphics
上画
x
- X坐标
y
- Y坐标
w
- 边框的宽度
h
- 边框的高度