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:
javax.swing.text.ViewFactory
public class FlatEditorPaneUI extends javax.swing.plaf.basic.BasicEditorPaneUIProvides the Flat LaF UI delegate forJEditorPane.- UiDefault:
- EditorPane.font Font, EditorPane.background Color also used if not editable, EditorPane.foreground Color, EditorPane.caretForeground Color, EditorPane.selectionBackground Color, EditorPane.selectionForeground Color, EditorPane.disabledBackground Color used if not enabled, EditorPane.inactiveBackground Color used if not editable, EditorPane.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), EditorPane.border Border, EditorPane.margin Insets, EditorPane.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisIntelliJThemeprotected intminimumWidth
-
Constructor Summary
Constructors Constructor Description FlatEditorPaneUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)protected voidinstallDefaults()protected voidpaintBackground(java.awt.Graphics g)protected voidpaintSafely(java.awt.Graphics g)protected voidpropertyChange(java.beans.PropertyChangeEvent e)protected voiduninstallDefaults()-
Methods inherited from class javax.swing.plaf.basic.BasicEditorPaneUI
getEditorKit, getPropertyPrefix, installUI, uninstallUI
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, uninstallListeners, update, viewToModel, viewToModel, viewToModel2D
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicTextUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicTextUI
-
propertyChange
protected void propertyChange(java.beans.PropertyChangeEvent e)
- Overrides:
propertyChangein classjavax.swing.plaf.basic.BasicEditorPaneUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.basic.BasicTextUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.basic.BasicTextUI
-
paintSafely
protected void paintSafely(java.awt.Graphics g)
- Overrides:
paintSafelyin classjavax.swing.plaf.basic.BasicTextUI
-
paintBackground
protected void paintBackground(java.awt.Graphics g)
- Overrides:
paintBackgroundin classjavax.swing.plaf.basic.BasicTextUI
-
-