Package com.formdev.flatlaf.ui
Class FlatEditorPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicEditorPaneUI
com.formdev.flatlaf.ui.FlatEditorPaneUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
,ViewFactory
Provides the Flat LaF UI delegate for
JEditorPane
.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Dimension
applyMinimumWidth
(JComponent c, Dimension size, int minimumWidth, Insets defaultMargin) protected void
applyStyle
(Object style) protected Object
applyStyleProperty
(String key, Object value) protected Caret
static ComponentUI
getStyleableValue
(JComponent c, String key) protected void
protected void
protected void
void
protected void
(package private) static void
paintBackground
(Graphics g, JTextComponent c, Color focusedBackground) protected void
protected void
(package private) static void
propertyChange
(JTextComponent c, PropertyChangeEvent e, Runnable installStyle) protected void
protected void
private void
Methods inherited from class javax.swing.plaf.basic.BasicEditorPaneUI
getEditorKit, getPropertyPrefix, uninstallUI
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, create, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, update, viewToModel, viewToModel, viewToModel2D
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
minimumWidth
protected int minimumWidth -
background
-
disabledBackground
-
inactiveBackground
-
focusedBackground
-
oldDisabledBackground
-
oldInactiveBackground
-
defaultMargin
-
oldHonorDisplayProperties
-
focusListener
-
oldStyleValues
-
-
Constructor Details
-
FlatEditorPaneUI
public FlatEditorPaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicEditorPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTextUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicTextUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTextUI
-
createCaret
- Overrides:
createCaret
in classBasicTextUI
-
propertyChange
- Overrides:
propertyChange
in classBasicEditorPaneUI
-
propertyChange
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
updateBackground
private void updateBackground() -
getPreferredSize
- Overrides:
getPreferredSize
in classBasicTextUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classBasicTextUI
-
applyMinimumWidth
static Dimension applyMinimumWidth(JComponent c, Dimension size, int minimumWidth, Insets defaultMargin) -
paintSafely
- Overrides:
paintSafely
in classBasicTextUI
-
paintBackground
- Overrides:
paintBackground
in classBasicTextUI
-
paintBackground
-