public class BEEditorPaneUI extends javax.swing.plaf.basic.BasicEditorPaneUI implements __UI__.BgSwitchable, BeautyEyeLNFHelper.__UseParentPaintSurported
| 构造器和说明 |
|---|
BEEditorPaneUI() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates a UI for a JEditorPane.
|
boolean |
isUseParentPaint()
是否使用父类的绘制实现方法,true表示是.
|
protected void |
paintBackground(java.awt.Graphics g)
Paints a background for the view.
|
void |
switchBgToFocused()
Switch bg to focused.
|
void |
switchBgToNomal()
Switch bg to nomal.
|
getEditorKit, getPropertyPrefix, installUI, propertyChange, uninstallUIcreate, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModelpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the configurable text componentpublic boolean isUseParentPaint()
因为在BE LNF中,边框和背景等都是使用N9图,没法通过设置背景色和前景 色来控制JEditorPane的颜色和边框,本方法的目的就是当用户设置了进度条的border或背景色 时告之本实现类不使用BE LNF中默认的N9图填充绘制而改用父类中的方法(父类中的方法 就可以支持颜色的设置罗,只是丑点,但总归是能适应用户的需求场景要求,其实用户完全可以 通过JEditorPane.setUI(..)方式来自定义UI哦).
isUseParentPaint 在接口中 BeautyEyeLNFHelper.__UseParentPaintSurportedprotected void paintBackground(java.awt.Graphics g)
paintBackground 在类中 javax.swing.plaf.basic.BasicTextUIg - the graphics contextpublic void switchBgToNomal()
__UI__.BgSwitchableswitchBgToNomal 在接口中 __UI__.BgSwitchablepublic void switchBgToFocused()
__UI__.BgSwitchableswitchBgToFocused 在接口中 __UI__.BgSwitchable