Package com.formdev.flatlaf.ui
Class FlatTextAreaUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextAreaUI
-
- com.formdev.flatlaf.ui.FlatTextAreaUI
-
- All Implemented Interfaces:
javax.swing.text.ViewFactory
public class FlatTextAreaUI extends javax.swing.plaf.basic.BasicTextAreaUI
Provides the Flat LaF UI delegate forJTextArea
.- UiDefault:
- TextArea.font Font, TextArea.background Color, TextArea.foreground Color also used if not editable, TextArea.caretForeground Color, TextArea.selectionBackground Color, TextArea.selectionForeground Color, TextArea.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), TextArea.border Border, TextArea.margin Insets, TextArea.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean, TextArea.disabledBackground Color used if not enabled, TextArea.inactiveBackground Color used if not editable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Color
background
protected java.awt.Color
disabledBackground
protected java.awt.Color
inactiveBackground
protected boolean
isIntelliJTheme
protected int
minimumWidth
-
Constructor Summary
Constructors Constructor Description FlatTextAreaUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
java.awt.Dimension
getMinimumSize(javax.swing.JComponent c)
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
protected void
installDefaults()
void
installUI(javax.swing.JComponent c)
protected void
paintBackground(java.awt.Graphics g)
protected void
paintSafely(java.awt.Graphics g)
protected void
propertyChange(java.beans.PropertyChangeEvent e)
protected void
uninstallDefaults()
-
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
create, getBaseline, getBaselineResizeBehavior, getPropertyPrefix
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, modelToView2D, paint, setView, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUI
in classjavax.swing.plaf.basic.BasicTextUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicTextAreaUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classjavax.swing.plaf.basic.BasicTextUI
-
propertyChange
protected void propertyChange(java.beans.PropertyChangeEvent e)
- Overrides:
propertyChange
in classjavax.swing.plaf.basic.BasicTextAreaUI
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicTextAreaUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in classjavax.swing.plaf.basic.BasicTextAreaUI
-
paintSafely
protected void paintSafely(java.awt.Graphics g)
- Overrides:
paintSafely
in classjavax.swing.plaf.basic.BasicTextUI
-
paintBackground
protected void paintBackground(java.awt.Graphics g)
- Overrides:
paintBackground
in classjavax.swing.plaf.basic.BasicTextUI
-
-