Class FlatTextPaneUI

  • All Implemented Interfaces:
    javax.swing.text.ViewFactory

    public class FlatTextPaneUI
    extends javax.swing.plaf.basic.BasicTextPaneUI
    Provides the Flat LaF UI delegate for JTextPane.
    UiDefault:
    TextPane.font Font, TextPane.background Color, TextPane.foreground Color also used if not editable, TextPane.caretForeground Color, TextPane.selectionBackground Color, TextPane.selectionForeground Color, TextPane.disabledBackground Color used if not enabled, TextPane.inactiveBackground Color used if not editable, TextPane.inactiveForeground Color used if not enabled (yes, this is confusing; this should be named disabledForeground), TextPane.border Border, TextPane.margin Insets, TextPane.caretBlinkRate int default is 500 milliseconds , Component.minimumWidth int, Component.isIntelliJTheme boolean
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI

        javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
    • Constructor Summary

      Constructors 
      Constructor Description
      FlatTextPaneUI()  
    • 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()  
      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.BasicTextPaneUI

        getPropertyPrefix, installUI
      • Methods inherited from class javax.swing.plaf.basic.BasicEditorPaneUI

        getEditorKit, 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
      • Methods inherited from class javax.swing.plaf.TextUI

        getToolTipText2D
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • minimumWidth

        protected int minimumWidth
      • isIntelliJTheme

        protected boolean isIntelliJTheme
    • Constructor Detail

      • FlatTextPaneUI

        public FlatTextPaneUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicTextUI
      • uninstallDefaults

        protected void uninstallDefaults()
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicTextUI
      • propertyChange

        protected void propertyChange​(java.beans.PropertyChangeEvent e)
        Overrides:
        propertyChange in class javax.swing.plaf.basic.BasicTextPaneUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicTextUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.basic.BasicTextUI
      • paintSafely

        protected void paintSafely​(java.awt.Graphics g)
        Overrides:
        paintSafely in class javax.swing.plaf.basic.BasicTextUI
      • paintBackground

        protected void paintBackground​(java.awt.Graphics g)
        Overrides:
        paintBackground in class javax.swing.plaf.basic.BasicTextUI