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 BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static DimensionapplyMinimumWidth(JComponent c, Dimension size, int minimumWidth, Insets defaultMargin) protected voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected Caretstatic ComponentUIgetStyleableValue(JComponent c, String key) protected voidprotected voidprotected voidvoidprotected void(package private) static voidpaintBackground(Graphics g, JTextComponent c, Color focusedBackground) protected voidprotected void(package private) static voidpropertyChange(JTextComponent c, PropertyChangeEvent e, Runnable installStyle) protected voidprotected voidprivate voidMethods inherited from class BasicEditorPaneUI
getEditorKit, getPropertyPrefix, uninstallUIMethods inherited from class 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, viewToModel2DMethods inherited from class TextUI
getToolTipText2DMethods inherited from class 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:
installUIin classBasicEditorPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicTextUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicTextUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicTextUI
-
createCaret
- Overrides:
createCaretin classBasicTextUI
-
propertyChange
- Overrides:
propertyChangein classBasicEditorPaneUI
-
propertyChange
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
updateBackground
private void updateBackground() -
getPreferredSize
- Overrides:
getPreferredSizein classBasicTextUI
-
getMinimumSize
- Overrides:
getMinimumSizein classBasicTextUI
-
applyMinimumWidth
static Dimension applyMinimumWidth(JComponent c, Dimension size, int minimumWidth, Insets defaultMargin) -
paintSafely
- Overrides:
paintSafelyin classBasicTextUI
-
paintBackground
- Overrides:
paintBackgroundin classBasicTextUI
-
paintBackground
-